From: Paolo Bonzini Date: Mon, 27 Jan 2014 13:51:44 +0000 (+0100) Subject: x86, kvm: correctly access the KVM_CPUID_FEATURES leaf at 0x40000101 X-Git-Tag: v3.14-rc1~26^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77f01bdfa5e55dc19d3eb747181d2730a9bb3ca8;p=pandora-kernel.git 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 --- Reading git-diff-tree failed