One interesting question is: when would you want shared memory in
guest_memfd and *not* provide it as part of the same memslot.
My original thinking wasn't that we wouldn't _want_ to, rather that we
don't _need_ to. I mistakenly thought that it would simplify things,
but, especially after this discussion, I now realize that it makes
things more complicated instead.
Right, and it's not off the table: we could always add support for this
"no mmaped shared guest_memfd" memory later if there is good reason to
have it.
--
Cheers,
David / dhildenb