From: "David Hildenbrand (Arm)" <david@kernel.org>
To: Peter Xu <peterx@redhat.com>, Michael Roth <michael.roth@amd.com>
Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, berrange@redhat.com,
armbru@redhat.com, pankaj.gupta@amd.com,
isaku.yamahata@intel.com, xiaoyao.li@intel.com,
chao.p.peng@linux.intel.com, Fabiano Rosas <farosas@suse.de>
Subject: Re: [PATCH v5 08/12] hostmem: Support fully shared guest memfd to back a VM
Date: Fri, 11 Sep 2026 18:00:56 +0200 [thread overview]
Message-ID: <26dd141c-fed3-4f7e-81db-315e975cdcd7@kernel.org> (raw)
In-Reply-To: <aqPusIvLVQv9gmPP@zhexu-thinkpadt14gen5.rmtcaon.csb>
On 9/11/26 14:06, Peter Xu wrote:
> On Thu, Sep 10, 2026 at 06:00:11PM -0500, Michael Roth wrote:
>> On Thu, Sep 10, 2026 at 10:54:09AM +0200, David Hildenbrand wrote:
>>>
>>> [...]
>>>
>>>
>>> There is a lot of uncertainty how guest_memfd would consume huge pages. So best
>>> to drop the "yet" that implies how it would be consumed (and that it would be
>>> called "hugetlb").
>>
>> Makes sense, will change this as suggested for v6
>
> I'm just curious, any more info on this part? Any link to existing work
> would help.
Ackerley has been mostly busy doing the in-place conversion, the hugetlb-related
patches he sent are a bit dated.
He's been recently looking into how to abstract memory providers for
guest_memfd, I think there were some upstream discussions related to that in
related context:
https://lore.kernel.org/r/CAEvNRgHbfx470HUBJhEUVKPKqsV0LnhX+wkD1TE-61fZy3jjUw@mail.gmail.com
>
> At least from our side, we look for hugetlb-alike support on gmem. I want
> to make sure what I understand still is valid, and it is still open to
> solve the postcopy problem.
Right, something like that will come. And I am not saying that we won't model it
as "guest memfd hugetlb" support in QEMU, but I wouldn't start documenting that
it will be modeled like that.
hugetlb will initially be used as a memory provider for hugetlb to allocate
larger pages, and guest_memfd will essentially strip these pages from hugetlb
details, turning them into simple large guest_memfd pages.
One idea is to support other pools, where also hugetlb could take pages from
these pools.
So it's just a matter of "we don't know how we will model it, and we don't know
whether it will be called hugetlb".
--
Cheers,
David
next prev parent reply other threads:[~2026-09-11 16:02 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-08 13:30 [PATCH v5 00/12] KVM/hostmem: Support init-shared guest-memfd as VM backends Michael Roth
2026-09-08 13:30 ` [PATCH v5 01/12] kvm: Decouple memory attribute check from kvm_guest_memfd_supported Michael Roth
2026-09-10 8:47 ` David Hildenbrand
2026-09-08 13:30 ` [PATCH v5 02/12] kvm: Detect guest-memfd flags supported Michael Roth
2026-09-08 13:30 ` [PATCH v5 03/12] kvm: Provide explicit error for kvm_create_guest_memfd() Michael Roth
2026-09-10 8:48 ` David Hildenbrand
2026-09-08 13:30 ` [PATCH v5 04/12] ramblock: Rename guest_memfd to guest_memfd_private Michael Roth
2026-09-10 8:49 ` David Hildenbrand
2026-09-08 13:30 ` [PATCH v5 05/12] memory: Rename RAM_GUEST_MEMFD to RAM_GUEST_MEMFD_PRIVATE Michael Roth
2026-09-10 8:50 ` David Hildenbrand
2026-09-08 13:30 ` [PATCH v5 06/12] memory: Rename memory_region_has_guest_memfd() to *_private() Michael Roth
2026-09-10 8:50 ` David Hildenbrand
2026-09-08 13:30 ` [PATCH v5 07/12] hostmem: Rename guest_memfd to guest_memfd_private Michael Roth
2026-09-10 8:51 ` David Hildenbrand
2026-09-08 13:30 ` [PATCH v5 08/12] hostmem: Support fully shared guest memfd to back a VM Michael Roth
2026-09-08 14:03 ` Markus Armbruster
2026-09-10 22:58 ` Michael Roth
2026-09-11 5:56 ` Markus Armbruster
2026-09-11 19:22 ` Michael Roth
2026-09-10 8:54 ` David Hildenbrand
2026-09-10 23:00 ` Michael Roth
2026-09-11 12:06 ` Peter Xu
2026-09-11 16:00 ` David Hildenbrand (Arm) [this message]
2026-09-14 12:59 ` Peter Xu
2026-09-15 15:02 ` David Hildenbrand (Arm)
2026-09-08 13:30 ` [PATCH v5 09/12] machine: Rename machine_require_guest_memfd() to *_private() Michael Roth
2026-09-10 8:55 ` David Hildenbrand
2026-09-10 23:08 ` Michael Roth
2026-09-11 10:48 ` David Hildenbrand (Arm)
2026-09-11 19:27 ` Michael Roth
2026-09-08 13:31 ` [PATCH v5 10/12] memory: Rename memory_region_init_ram_guest_memfd() " Michael Roth
2026-09-10 8:56 ` David Hildenbrand
2026-09-08 13:31 ` [PATCH v5 11/12] tests/migration-test: Support guest-memfd init shared mem type Michael Roth
2026-09-08 13:31 ` [PATCH v5 12/12] tests/migration-test: Add a precopy test for guest-memfd Michael Roth
2026-09-10 8:45 ` [PATCH v5 00/12] KVM/hostmem: Support init-shared guest-memfd as VM backends David Hildenbrand
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=26dd141c-fed3-4f7e-81db-315e975cdcd7@kernel.org \
--to=david@kernel.org \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=chao.p.peng@linux.intel.com \
--cc=farosas@suse.de \
--cc=isaku.yamahata@intel.com \
--cc=michael.roth@amd.com \
--cc=pankaj.gupta@amd.com \
--cc=pbonzini@redhat.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=xiaoyao.li@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox