aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2008-11-17 19:03:21 -0200
committerAvi Kivity <avi@redhat.com>2008-12-31 16:52:30 +0200
commit2c8dceebb238680d5577500f8283397d41ca5590 (patch)
tree5b96cfa8c5f89a79e0da1e8be91d5eb1a9b51fa4 /arch/x86/kvm
parent63d1142f8f69e39468bc6079ab2239e902828134 (diff)
downloadkernel_samsung_aries-2c8dceebb238680d5577500f8283397d41ca5590.zip
kernel_samsung_aries-2c8dceebb238680d5577500f8283397d41ca5590.tar.gz
kernel_samsung_aries-2c8dceebb238680d5577500f8283397d41ca5590.tar.bz2
KVM: SVM: move svm_hardware_disable() code to asm/virtext.h
Create cpu_svm_disable() function. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/svm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 0667c6d..1452851 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -259,11 +259,7 @@ static int has_svm(void)
static void svm_hardware_disable(void *garbage)
{
- uint64_t efer;
-
- wrmsrl(MSR_VM_HSAVE_PA, 0);
- rdmsrl(MSR_EFER, efer);
- wrmsrl(MSR_EFER, efer & ~MSR_EFER_SVME_MASK);
+ cpu_svm_disable();
}
static void svm_hardware_enable(void *garbage)