diff options
author | 2014-01-27 14:51:44 +0100 | |
---|---|---|
committer | 2014-01-29 18:11:55 +0100 | |
commit | 77f01bdfa5e55dc19d3eb747181d2730a9bb3ca8 (patch) | |
tree | 9f85c79d2af02145774799b31b0862dfcce5b844 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | x86, kvm: cache the base of the KVM cpuid leaves (diff) | |
download | linux-dev-77f01bdfa5e55dc19d3eb747181d2730a9bb3ca8.tar.xz linux-dev-77f01bdfa5e55dc19d3eb747181d2730a9bb3ca8.zip |
x86, kvm: correctly access the KVM_CPUID_FEATURES leaf at 0x40000101
When Hyper-V hypervisor leaves are present, KVM must relocate
its own leaves at 0x40000100, because Windows does not look for
Hyper-V leaves at indices other than 0x40000000. In this case,
the KVM features are at 0x40000101, but the old code would always
look at 0x40000001.
Fix by using kvm_cpuid_base(). This also requires making the
function non-inline, since kvm_cpuid_base() is static.
Fixes: 1085ba7f552d84aa8ac0ae903fa8d0cc2ff9f79d
Cc: stable@vger.kernel.org
Cc: mtosatti@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions