lkml.org 
[lkml]   [2008]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 12/15] kvm: svm: no-parameters version of svm_hardware_disable()
Date
Create __svm_hardware_disable(), a function we can use for
set_virt_disable_func().

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
arch/x86/kvm/svm.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index f0ad4d4..3d330a2 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -266,7 +266,7 @@ static int has_svm(void)
return 1;
}

-static void svm_hardware_disable(void *garbage)
+static void __svm_hardware_disable(void)
{
uint64_t efer;

@@ -275,6 +275,11 @@ static void svm_hardware_disable(void *garbage)
wrmsrl(MSR_EFER, efer & ~MSR_EFER_SVME_MASK);
}

+static void svm_hardware_disable(void *garbage)
+{
+ __svm_hardware_disable();
+}
+
static void svm_hardware_enable(void *garbage)
{

--
1.5.5.GIT


\
 
 \ /
  Last update: 2008-11-05 21:05    [W:0.109 / U:6.872 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site