KVM: SVM: Create trace events for VMGEXIT MSR protocol processing
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 10 Dec 2020 17:09:52 +0000 (11:09 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Dec 2020 10:20:49 +0000 (05:20 -0500)
commit59e38b58de283f76c533a2da416abf93bfd9ea41
tree9a04c8afeefb7b42d7af44c0e9e09041329027ea
parentd523ab6ba2753bd41b4447ae48024182cb4da94f
KVM: SVM: Create trace events for VMGEXIT MSR protocol processing

Add trace events for entry to and exit from VMGEXIT MSR protocol
processing. The vCPU will be common for the trace events. The MSR
protocol processing is guided by the GHCB GPA in the VMCB, so the GHCB
GPA will represent the input and output values for the entry and exit
events, respectively. Additionally, the exit event will contain the
return code for the event.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Message-Id: <c5b3b440c3e0db43ff2fc02813faa94fa54896b0.1607620209.git.thomas.lendacky@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c
arch/x86/kvm/trace.h
arch/x86/kvm/x86.c