diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2009-10-09 16:08:31 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-12-03 09:32:16 +0200 |
commit | ec1ff79084fccdae0dca9b04b89dcdf3235bbfa1 (patch) | |
tree | fddd8cfce75d88116c2fbcb1cf15e70a3588dfbc /arch/x86/kvm/svm.c | |
parent | 236649de3360916ef85f95c82723af17a25b9179 (diff) | |
download | lwn-ec1ff79084fccdae0dca9b04b89dcdf3235bbfa1.tar.gz lwn-ec1ff79084fccdae0dca9b04b89dcdf3235bbfa1.zip |
KVM: SVM: Add tracepoint for invlpga instruction
This patch adds a tracepoint for the event that the guest
executed the INVLPGA instruction.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 78a391c60a75..ba18fb7d3657 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -1976,6 +1976,9 @@ static int invlpga_interception(struct vcpu_svm *svm) struct kvm_vcpu *vcpu = &svm->vcpu; nsvm_printk("INVLPGA\n"); + trace_kvm_invlpga(svm->vmcb->save.rip, vcpu->arch.regs[VCPU_REGS_RCX], + vcpu->arch.regs[VCPU_REGS_RAX]); + /* Let's treat INVLPGA the same as INVLPG (can be optimized!) */ kvm_mmu_invlpg(vcpu, vcpu->arch.regs[VCPU_REGS_RAX]); |