KVM: x86: Update trace function for nested VM entry to support VMX
authorMingwei Zhang <mizhang@google.com>
Thu, 25 Aug 2022 22:57:53 +0000 (22:57 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Sep 2022 16:02:32 +0000 (12:02 -0400)
commit89e54ec592324ed8b2b1eb41f91c1a4b724b0db5
tree0a25f9866c0a22209e57f68f90205266010d0667
parentbff0adc40c0050dbbcec74829ffa9ef5a5d29eba
KVM: x86: Update trace function for nested VM entry to support VMX

Update trace function for nested VM entry to support VMX. Existing trace
function only supports nested VMX and the information printed out is AMD
specific.

So, rename trace_kvm_nested_vmrun() to trace_kvm_nested_vmenter(), since
'vmenter' is generic. Add a new field 'isa' to recognize Intel and AMD;
Update the output to print out VMX/SVM related naming respectively, eg.,
vmcb vs. vmcs; npt vs. ept.

Opportunistically update the call site of trace_kvm_nested_vmenter() to
make one line per parameter.

Signed-off-by: Mingwei Zhang <mizhang@google.com>
Link: https://lore.kernel.org/r/20220825225755.907001-2-mizhang@google.com
[sean: align indentation, s/update/rename in changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c
arch/x86/kvm/trace.h
arch/x86/kvm/x86.c