From: Alexandru Elisei <alexandru.elisei@arm.com>
To: David Hildenbrand <david.hildenbrand@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
Sean Christopherson <seanjc@google.com>,
pbonzini@redhat.com, kvm@vger.kernel.org, maz@kernel.org,
oupton@kernel.org, joey.gouly@arm.com, seiden@linux.ibm.com,
suzuki.poulose@arm.com, yuzenghui@huawei.com,
linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev,
fuad.tabba@linux.dev
Subject: Re: [RFC PATCH 0/3] KVM: Dirty page logging for guest_memfd-only memslots
Date: Thu, 13 Aug 2026 17:09:05 +0100 [thread overview]
Message-ID: <an3sEiQlIuGEjUur@raptor> (raw)
In-Reply-To: <a127176a-1722-460c-aa84-754e1d343f53@arm.com>
Hi Sean, David,
On Mon, Jul 13, 2026 at 04:11:57PM +0200, David Hildenbrand wrote:
>
> >> That said, odds are good that we'll end up with per-gmem flags to communicate to
> >> guest_memfd whether or not the gmem instance supports page migration (x86's TDX
> >> and SNP in particular require extra consideration). So if the anticipated use
> >> cases are fine with all-or-nothing "pinning", or with juggling guest_memfd files
> >> in userspace if a more dynamic setup is desired, then you should be ok?
> >>
> >> E.g. if the anticipated use cases are all slice-of-hardware style setups where
> >> the VM will be statically assigned a chunk of memory, then for the most part this
> >> will all Just Work.
> >
> > Yeah. I agree (with the caveats you mention). Arm folk need to go figure
> > out if it's worthwhile to support with all those caveats.
>
> Right, disabling migration (once gmem supports it) was also what I discussed
> with Alexandru when that topic comes up.
>
> How to communicate to gmem that it wants these fixed mappings is a good question.
There's already a proposal for how to do this in the migratable guest_memfd
series [1] - it's a new guest_memfd creation flag that disables migration.
With Sean's comment that he expects swap/reclaim to be fully userspace
driven, I believe that would be enough to guarantee on the _kernel_ side
that SPE will work as intended for a guest.
I'm a slightly concerned though that all of this will work by chance, and
not by design, and in the future the behaviour might change to allow
guest_memfd memory to be unmapped from stage 2 without the VMM or KVM
explicitly allowing it or initiating it.
My understanding from the conversation so far is that the plan for the
future of guest_memfd is to support an option/mode where the memory is
effectively "pinned" at stage 2 (but which allows userspace to explicitly
free/unmap it, of course). Is that correct, or am I being overly optimistic
in my interpretation?
[1] https://lore.kernel.org/all/20260805-shivank-gmem-migrate-v3-4-00d8bdec4e1d@amd.com/
Thanks,
Alex
next prev parent reply other threads:[~2026-08-13 16:09 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-02 14:29 [RFC PATCH 0/3] KVM: Dirty page logging for guest_memfd-only memslots Alexandru Elisei
2026-07-02 14:29 ` [RFC PATCH 1/3] KVM: guest_memfd: Use memslot id to keep track of associated memslots Alexandru Elisei
2026-07-02 14:47 ` sashiko-bot
2026-07-02 16:09 ` Alexandru Elisei
2026-07-06 7:14 ` David Hildenbrand
2026-07-06 13:45 ` Alexandru Elisei
2026-07-06 21:46 ` Sean Christopherson
2026-07-07 17:05 ` Alexandru Elisei
2026-07-06 21:43 ` Sean Christopherson
2026-07-07 17:05 ` Alexandru Elisei
2026-07-13 14:03 ` David Hildenbrand
2026-07-13 16:13 ` Sean Christopherson
2026-07-13 13:42 ` David Hildenbrand
2026-07-02 14:29 ` [RFC PATCH 2/3] KVM: Implement dirty page logging for guest_memfd-only memslots Alexandru Elisei
2026-07-07 1:29 ` Sean Christopherson
2026-07-07 17:12 ` Alexandru Elisei
2026-07-14 5:39 ` Kishen Maloor
2026-07-02 14:29 ` [RFC PATCH 3/3] KVM: arm64: Allow " Alexandru Elisei
2026-07-07 0:56 ` [RFC PATCH 0/3] KVM: Dirty " Sean Christopherson
2026-07-07 16:58 ` Alexandru Elisei
2026-07-07 17:12 ` Sean Christopherson
2026-07-09 11:21 ` Mark Rutland
2026-07-09 19:01 ` Sean Christopherson
2026-07-10 10:26 ` Mark Rutland
2026-07-13 14:11 ` David Hildenbrand
2026-08-13 16:09 ` Alexandru Elisei [this message]
2026-08-13 20:01 ` David Hildenbrand
2026-08-13 23:32 ` Sean Christopherson
2026-07-09 20:33 ` Oliver Upton
2026-07-10 10:44 ` Alexandru Elisei
2026-07-10 18:18 ` Oliver Upton
2026-07-13 13:48 ` Alexandru Elisei
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=an3sEiQlIuGEjUur@raptor \
--to=alexandru.elisei@arm.com \
--cc=david.hildenbrand@arm.com \
--cc=fuad.tabba@linux.dev \
--cc=joey.gouly@arm.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=maz@kernel.org \
--cc=oupton@kernel.org \
--cc=pbonzini@redhat.com \
--cc=seanjc@google.com \
--cc=seiden@linux.ibm.com \
--cc=suzuki.poulose@arm.com \
--cc=yuzenghui@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.