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)
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>

No differences found