aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2013-11-04 08:52:43 -0500
committerGleb Natapov <gleb@redhat.com>2013-11-05 02:11:40 -0500
commita9d4e4393b13bca899ab522aa812138437a6c188 (patch)
tree74fdb2724de122734e75cc430481b74a5e316c07 /arch/x86
parent6d4d85ec5698a65165eb9af0ce0e508a7c757bac (diff)
KVM: x86: trace cpuid emulation when called from emulator
Currently cpuid emulation is traced only when executed by intercept. Move trace point so that emulator invocation is traced too. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/cpuid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
index 86d5756dda07..8f66fba804e4 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -756,6 +756,7 @@ void kvm_cpuid(struct kvm_vcpu *vcpu, u32 *eax, u32 *ebx, u32 *ecx, u32 *edx)
756 *edx = best->edx; 756 *edx = best->edx;
757 } else 757 } else
758 *eax = *ebx = *ecx = *edx = 0; 758 *eax = *ebx = *ecx = *edx = 0;
759 trace_kvm_cpuid(function, *eax, *ebx, *ecx, *edx);
759} 760}
760EXPORT_SYMBOL_GPL(kvm_cpuid); 761EXPORT_SYMBOL_GPL(kvm_cpuid);
761 762
@@ -771,6 +772,5 @@ void kvm_emulate_cpuid(struct kvm_vcpu *vcpu)
771 kvm_register_write(vcpu, VCPU_REGS_RCX, ecx); 772 kvm_register_write(vcpu, VCPU_REGS_RCX, ecx);
772 kvm_register_write(vcpu, VCPU_REGS_RDX, edx); 773 kvm_register_write(vcpu, VCPU_REGS_RDX, edx);
773 kvm_x86_ops->skip_emulated_instruction(vcpu); 774 kvm_x86_ops->skip_emulated_instruction(vcpu);
774 trace_kvm_cpuid(function, eax, ebx, ecx, edx);
775} 775}
776EXPORT_SYMBOL_GPL(kvm_emulate_cpuid); 776EXPORT_SYMBOL_GPL(kvm_emulate_cpuid);