KVM: x86: Print symbolic names of VMX VM-Exit flags in traces
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 8 May 2020 23:53:48 +0000 (16:53 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 May 2020 16:26:18 +0000 (12:26 -0400)
commit2c4c41325540cf3abb12aef142c0e550f6afeffc
treeb23012df0f19d2f53193a79d85ce6fa153eb0e6f
parentdcf068da7eb29362adf13f20e5c44a18d98ed9a3
KVM: x86: Print symbolic names of VMX VM-Exit flags in traces

Use __print_flags() to display the names of VMX flags in VM-Exit traces
and strip the flags when printing the basic exit reason, e.g. so that a
failed VM-Entry due to invalid guest state gets recorded as
"INVALID_STATE FAILED_VMENTRY" instead of "0x80000021".

Opportunstically fix misaligned variables in the kvm_exit and
kvm_nested_vmexit_inject tracepoints.

Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200508235348.19427-3-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/uapi/asm/vmx.h
arch/x86/kvm/trace.h