KVM: x86: Print guest pgd in kvm_nested_vmenter()
authorMingwei Zhang <mizhang@google.com>
Thu, 25 Aug 2022 22:57:55 +0000 (22:57 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Sep 2022 16:02:33 +0000 (12:02 -0400)
commit02dfc44f205772f0edc0d8e58420205c1cf2f83b
tree672380a458d3fafe0a604afddeb0fe993f7a06a1
parent37ef0be269540028a375f28a68ac16979a4349df
KVM: x86: Print guest pgd in kvm_nested_vmenter()

Print guest pgd in kvm_nested_vmenter() to enrich the information for
tracing. When tdp is enabled, print the value of tdp page table (EPT/NPT);
when tdp is disabled, print the value of non-nested CR3.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Mingwei Zhang <mizhang@google.com>
Link: https://lore.kernel.org/r/20220825225755.907001-4-mizhang@google.com
[sean: print nested_cr3 vs. nested_eptp vs. guest_cr3]
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/vmx/nested.c