KVM: nVMX: Add VM-Enter failed tracepoints for super early checks
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 12 Aug 2020 18:06:15 +0000 (11:06 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:23 +0000 (07:57 -0400)
commitfc595f35994233a566904bf811ffb9c3c80a84a9
tree0b35b80a9be3ecfa43faf2a8b2bd65e12d02295b
parentfb0f33fdefe9f473dc5f7b71345096c8d60ab9dd
KVM: nVMX: Add VM-Enter failed tracepoints for super early checks

Add tracepoints for the early consistency checks in nested_vmx_run().
The "VMLAUNCH vs. VMRESUME" check in particular is useful to trace, as
there is no architectural way to check VMCS.LAUNCH_STATE, and subtle
bugs such as VMCLEAR on the wrong HPA can lead to confusing errors in
the L1 VMM.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200812180615.22372-1-sean.j.christopherson@intel.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c