KVM: X86: Report SVM bit to userspace only when supported
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 10 Sep 2010 15:31:06 +0000 (17:31 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Nov 2010 19:03:05 +0000 (11:03 -0800)
commit0fca4221cc16a72598dbb8b7d3f281c695886027
treea1b8a5da49dd96c95536839457466ec6aa03369b
parent8d080c8acf0ef106e5d1bf38590c47afde5a1bf2
KVM: X86: Report SVM bit to userspace only when supported

commit 4c62a2dc92518c5adf434df8e5c2283c6762672a upstream.

This patch fixes a bug in KVM where it _always_ reports the
support of the SVM feature to userspace. But KVM only
supports SVM on AMD hardware and only when it is enabled in
the kernel module. This patch fixes the wrong reporting.

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/x86.c