]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: SVM: Reliably detect if SVM was disabled by BIOS
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 18 Jul 2007 16:51:36 +0000 (19:51 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Aug 2007 21:27:30 +0000 (14:27 -0700)
commitfa10a71942870a670113152f1d948393636d3c4a
tree17e453d8757a7b9fa7c4925edbb0ce5268e6a9c2
parent668df9fe157abbc90efc0ca054048300afb5937c
KVM: SVM: Reliably detect if SVM was disabled by BIOS

This patch adds an implementation to the svm is_disabled function to
detect reliably if the BIOS disabled the SVM feature in the CPU. This
fixes the issues with kernel panics when loading the kvm-amd module on
machines where SVM is available but disabled.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/kvm/svm.c
drivers/kvm/svm.h