]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerAvi Kivity <avi@redhat.com>
Wed, 8 Dec 2010 15:28:37 +0000 (17:28 +0200)
commit24d1b15f72abe3465e871d11cfc9dc34d1aab8b2
tree41cec3e52d2bfad89426244159dab97e1c240f66
parent3ea3aa8cf67d3bbe00a19b6a4013d19efa7d0f41
KVM: SVM: Do not report xsave in supported cpuid

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>
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h