]> git.baikalelectronics.ru Git - kernel.git/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)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:48 +0000 (10:52 +0200)
commitca5cf1514f34a9aa9a6d2ef3c12267704b6c7ca6
tree610ba76b930c0d126a72871ba15b35c89b06fbc3
parent1bd4cb991e05b24f72e7519b8b8ed63074cefbb3
KVM: X86: Report SVM bit to userspace only when supported

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.

Cc: stable@kernel.org
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/x86.c