mirror_ubuntu-kernels/arch/x86/kvm/svm
Sean Christopherson 235ba74f00 KVM: x86: Add intr/vectoring info and error code to kvm_exit tracepoint
Extend the kvm_exit tracepoint to align it with kvm_nested_vmexit in
terms of what information is captured.  On SVM, add interrupt info and
error code, while on VMX it add IDT vectoring and error code.  This
sets the stage for macrofying the kvm_exit tracepoint definition so that
it can be reused for kvm_nested_vmexit without loss of information.

Opportunistically stuff a zero for VM_EXIT_INTR_INFO if the VM-Enter
failed, as the field is guaranteed to be invalid.  Note, it'd be
possible to further filter the interrupt/exception fields based on the
VM-Exit reason, but the helper is intended only for tracepoints, i.e.
an extra VMREAD or two is a non-issue, the failed VM-Enter case is just
low hanging fruit.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200923201349.16097-5-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-09-28 07:57:51 -04:00
..
avic.c KVM: SVM: use __GFP_ZERO instead of clear_page() 2020-09-28 07:57:19 -04:00
nested.c KVM: nSVM: CR3 MBZ bits are only 63:52 2020-09-28 07:57:23 -04:00
pmu.c KVM: x86/pmu: Tweak kvm_pmu_get_msr to pass 'struct msr_data' in 2020-06-01 04:26:08 -04:00
sev.c KVM: SEV: shorten comments around sev_clflush_pages 2020-09-28 07:57:24 -04:00
svm.c KVM: x86: Add intr/vectoring info and error code to kvm_exit tracepoint 2020-09-28 07:57:51 -04:00
svm.h KVM: nSVM: CR3 MBZ bits are only 63:52 2020-09-28 07:57:23 -04:00
vmenter.S x86/kvm/svm: Move guest enter/exit into .noinstr.text 2020-07-09 07:08:41 -04:00