]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: nVMX: advertise MBEC to nested guests
authorJon Kohler <jon@nutanix.com>
Wed, 8 Apr 2026 15:42:09 +0000 (11:42 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 10 May 2026 12:55:07 +0000 (14:55 +0200)
commit606ddbfb4c02219cd2499085b38d97a213d35479
tree40f37ffe578c23fdc2d01dac0012d0520b1ba5a6
parentd220bcf026f0a4bc450744e427ad8fc08855f752
KVM: nVMX: advertise MBEC to nested guests

Advertise SECONDARY_EXEC_MODE_BASED_EPT_EXEC (MBEC) to userspace, which
allows userspace to expose and advertise the feature to the guest.

When MBEC is enabled by the guest, it is passed to the MMU via cr4_smep,
and to the processor by the merging of vmcs12->secondary_vm_exec_control
into the VMCS02's secondary VM execution controls.

Signed-off-by: Jon Kohler <jon@nutanix.com>
Message-ID: <20251223054806.1611168-9-jon@nutanix.com>
Tested-by: David Riley <d.riley@proxmox.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.h
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/spte.c
arch/x86/kvm/vmx/nested.c