KVM: nVMX: Don't rewrite GUEST_PML_INDEX during nested VM-Entry
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 7 May 2019 16:06:30 +0000 (09:06 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Jun 2019 09:46:53 +0000 (11:46 +0200)
commit4d6c989284ca61176f60148ba3f3c70650ee1aff
treece672b64924ec224ed5107386b0f66a9964e7a59
parentc538d57f6726022f9810bfbb52c4696cfdaf10a7
KVM: nVMX: Don't rewrite GUEST_PML_INDEX during nested VM-Entry

Emulation of GUEST_PML_INDEX for a nested VMM is a bit weird.  Because
L0 flushes the PML on every VM-Exit, the value in vmcs02 at the time of
VM-Enter is a constant -1, regardless of what L1 thinks/wants.

Fixes: 09abe32002665 ("KVM: nVMX: split pieces of prepare_vmcs02() to prepare_vmcs02_early()")
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c