KVM: SVM: Do not report xsave in supported cpuid
authorJoerg Roedel <joerg.roedel@amd.com>
Tue, 7 Dec 2010 16:15:05 +0000 (17:15 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 21:58:46 +0000 (13:58 -0800)
commit918a0ca6d40a07fb7d11ac7b9e1033677e0b318b
tree2e1d918c8e54fd2d9bf821aba1b470496c10a415
parent9b5f28d26b8233dff5a1e4f659b70ee55a827711
KVM: SVM: Do not report xsave in supported cpuid

commit 24d1b15f72abe3465e871d11cfc9dc34d1aab8b2 upstream.

To support xsave properly for the guest the SVM module need
software support for it. As long as this is not present do
not report the xsave as supported feature in cpuid.
As a side-effect this patch moves the bit() helper function
into the x86.h file so that it can be used in svm.c too.

KVM-Stable-Tag.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h