Re: [PATCH gmem] KVM: Relax guest_memfd restrictions on hugepages
From: Sean Christopherson
Date: Thu Oct 05 2023 - 22:22:02 EST
On Mon, 02 Oct 2023 08:33:42 -0500, Michael Roth wrote:
> Rather than requiring an entire memslot's gmem binding to be
> hugepage-aligned to make use of hugepages, relax the check to simply
> ensure that a large folio is completely contained by the range the
> memslot is bound to. Otherwise, userspace components like QEMU may
> inadvertantly disable the use of hugepages depending on how they handle
> splitting up regions of guest memory for legacy regions, ROMs, etc.
>
> [...]
Applied to kvm-x86 guest_memfd, thanks!
[1/1] KVM: Relax guest_memfd restrictions on hugepages
https://github.com/kvm-x86/linux/commit/e7af8d17224a
--
https://github.com/kvm-x86/linux/tree/next