]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Trace the original requested CPUID function in kvm_cpuid()
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 5 Mar 2020 01:34:31 +0000 (17:34 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:58:46 +0000 (17:58 +0100)
commitd6d0bc00b00e7ba8d3ad06bb19984fcfa6d39c4c
tree267f44a205d80e977e28666f4fec26938b25d7ad
parent89406c614a3c48b1c2f74ab2761bd0c65c8b9975
KVM: x86: Trace the original requested CPUID function in kvm_cpuid()

Trace the requested CPUID function instead of the effective function,
e.g. if the requested function is out-of-range and KVM is emulating an
Intel CPU, as the intent of the tracepoint is to show if the output came
from the actual leaf as opposed to the max basic leaf via redirection.

Similarly, leave "found" as is, i.e. report that an entry was found if
and only if the requested entry was found.

Fixes: bb46c02e4db1 ("kvm: x86: Improve emulation of CPUID leaves 0BH and 1FH")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
[Sean: Drop "found" semantic change, reword changelong accordingly ]
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c