KVM: nVMX: trace nested VM-Enter failures detected by H/W
authorSean Christopherson <sean.j.christopherson@intel.com>
Thu, 11 Jul 2019 15:58:30 +0000 (08:58 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 11 Sep 2019 15:34:17 +0000 (17:34 +0200)
commit380e0055bc7e4a5c687436ba3ccebb4667836b95
tree4aaa889a67f97f63b75f1e449c25eb4917f946ac
parent5497b95567c1b7b264dbb80d3608119e18aa4c07
KVM: nVMX: trace nested VM-Enter failures detected by H/W

Use the recently added tracepoint for logging nested VM-Enter failures
instead of spamming the kernel log when hardware detects a consistency
check failure.  Take the opportunity to print the name of the error code
instead of dumping the raw hex number, but limit the symbol table to
error codes that can reasonably be encountered by KVM.

Add an equivalent tracepoint in nested_vmx_check_vmentry_hw(), e.g. so
that tracing of "invalid control field" errors isn't suppressed when
nested early checks are enabled.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/vmx.h
arch/x86/kvm/trace.h
arch/x86/kvm/vmx/nested.c