KVM: nVMX: Initialize #VE info page for vmcs02 when proving #VE support
authorSean Christopherson <seanjc@google.com>
Sat, 18 May 2024 00:04:23 +0000 (17:04 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 May 2024 16:27:25 +0000 (12:27 -0400)
commitd1b32ecdc8ad0346ac551866d9f6831995fd70de
tree01ab007c9bc799726afc3d7ee03c296fa2a4dc8c
parent40e8a6901a2c983e3e541a363865e02cf591d458
KVM: nVMX: Initialize #VE info page for vmcs02 when proving #VE support

Point vmcs02.VE_INFORMATION_ADDRESS at the vCPU's #VE info page when
initializing vmcs02, otherwise KVM will run L2 with EPT Violation #VE
enabled and a VE info address pointing at pfn 0.

Fixes: 8131cf5b4fd8 ("KVM: VMX: Introduce test mode related to EPT violation VE")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20240518000430.1118488-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c