]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: nVMX: pass PFERR_USER_MASK to MMU on EPT violations
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Apr 2026 15:42:07 +0000 (11:42 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 10 May 2026 12:55:06 +0000 (14:55 +0200)
commit9c167cb3c14c486e683fe4248a8309eb4dd3042b
treeaeec37180d611a5cb05ec2275b50b2bb0740165d
parenta0efd8cb221fff20f511ecf759c42c076a513ebb
KVM: nVMX: pass PFERR_USER_MASK to MMU on EPT violations

For EPT, PFERR_USER_MASK refers not to the CPL of the guest,
but to the AND of the U bits encountered while walking guest
page tables; this is consistent with how MBEC differentiates
between XS and XU.  This is available through the
"advanced vmexit information for EPT violations" feature.

Tested-by: David Riley <d.riley@proxmox.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/common.h
arch/x86/kvm/vmx/vmx.c