KVM: nVMX: WARN if PML emulation helper is invoked outside of nested guest
authorSean Christopherson <sean.j.christopherson@intel.com>
Mon, 22 Jun 2020 21:58:31 +0000 (14:58 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jul 2020 20:21:37 +0000 (16:21 -0400)
commit2f1d48aae2961b68922a653587f359c245569ccb
treea8ad76753a48f31b3cac9c306f925e61dccb8ac2
parentf25a9dec2da3b303e4c62cf9fa67e836866198b2
KVM: nVMX: WARN if PML emulation helper is invoked outside of nested guest

WARN if vmx_write_pml_buffer() is called outside of guest mode instead
of silently ignoring the condition.  The only caller is nested EPT's
ept_update_accessed_dirty_bits(), which should only be reachable when
L2 is active.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200622215832.22090-4-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c