]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - arch/x86/kvm/svm.c
KVM: SVM: Reliably detect if SVM was disabled by BIOS
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 22 Jun 2007 09:29:50 +0000 (12:29 +0300)
committerAvi Kivity <avi@qumranet.com>
Mon, 16 Jul 2007 09:05:49 +0000 (12:05 +0300)
commit6031a61c2ef4cf22b69ef5494aefa54b84a27d2f
tree2e0ccd861da726e76785a0a68a46da06951f1eb0
parent796fd1b23e463e98b3e2fc86ed571db06dc945bb
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>
drivers/kvm/svm.c
drivers/kvm/svm.h