]> git.hungrycats.org Git - linux/commit
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 18:59:51 +0000 (10:59 -0800)
commitc0b67df56563d6e27b111fcf8cc8cf694ec4b87c
treee7685d474dd8554d5e59fbc8808657c8ebd09618
parentb78891dfa05b86e74efdc4e7ed47f279ae96aa4b
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