diff options
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 0667c6d13d30..1452851ae258 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -259,11 +259,7 @@ static int has_svm(void) | |||
259 | 259 | ||
260 | static void svm_hardware_disable(void *garbage) | 260 | static void svm_hardware_disable(void *garbage) |
261 | { | 261 | { |
262 | uint64_t efer; | 262 | cpu_svm_disable(); |
263 | |||
264 | wrmsrl(MSR_VM_HSAVE_PA, 0); | ||
265 | rdmsrl(MSR_EFER, efer); | ||
266 | wrmsrl(MSR_EFER, efer & ~MSR_EFER_SVME_MASK); | ||
267 | } | 263 | } |
268 | 264 | ||
269 | static void svm_hardware_enable(void *garbage) | 265 | static void svm_hardware_enable(void *garbage) |