]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Enable support for guest_memfd backed memory
authorFuad Tabba <tabba@google.com>
Tue, 29 Jul 2025 22:54:51 +0000 (15:54 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 27 Aug 2025 08:36:50 +0000 (04:36 -0400)
commit32e200bd6e4407c31aef0392be041274bfa3f20e
tree94cdf70a1769d1ec2da6835248328ad304c8b380
parentf4e740309ee255a52a60bbc044647a11429250fc
KVM: arm64: Enable support for guest_memfd backed memory

Now that the infrastructure is in place, enable guest_memfd for arm64.

* Select CONFIG_KVM_GUEST_MEMFD in KVM/arm64 Kconfig.

* Enforce KVM_MEMSLOT_GMEM_ONLY for guest_memfd on arm64: Ensure that
  guest_memfd-backed memory slots on arm64 are only supported if they
  are intended for shared memory use cases (i.e.,
  kvm_memslot_is_gmem_only() is true). This design reflects the current
  arm64 KVM ecosystem where guest_memfd is primarily being introduced
  for VMs that support shared memory.

Reviewed-by: James Houghton <jthoughton@google.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20250729225455.670324-21-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/arm64/kvm/Kconfig
arch/arm64/kvm/mmu.c