mbox series

[0/3] kvm: add support for KVM_CAP_VM_GPA_BITS

Message ID 20240301101410.356007-1-kraxel@redhat.com (mailing list archive)
Headers show
Series kvm: add support for KVM_CAP_VM_GPA_BITS | expand

Message

Gerd Hoffmann March 1, 2024, 10:14 a.m. UTC
This allows userspace (qemu) query the address space size available to
the guest.  Typically this is identical to the host physical address
space.  There are a few exceptions though, and this allows to handle
them properly.

Gerd Hoffmann (3):
  kvm: wire up KVM_CAP_VM_GPA_BITS for x86
  kvm/vmx: limit guest_phys_bits to 48 without 5-level ept
  kvm/svm: limit guest_phys_bits to 48 in 4-level paging mode

 arch/x86/kvm/x86.h     | 2 ++
 arch/x86/kvm/svm/svm.c | 5 +++++
 arch/x86/kvm/vmx/vmx.c | 5 +++++
 arch/x86/kvm/x86.c     | 5 +++++
 4 files changed, 17 insertions(+)