kvm_patch might be called during module load.

Signed-off-by: Marcelo Tosatti <[EMAIL PROTECTED]>

Index: kvm.first/arch/x86/kernel/kvm.c
===================================================================
--- kvm.first.orig/arch/x86/kernel/kvm.c
+++ kvm.first/arch/x86/kernel/kvm.c
@@ -184,7 +184,7 @@ static void register_cr3_cache(void *cac
        wrmsrl(KVM_MSR_SET_CR3_CACHE, __pa(&state->cr3_cache));
 }
 
-static unsigned __init kvm_patch(u8 type, u16 clobbers, void *ibuf,
+static unsigned kvm_patch(u8 type, u16 clobbers, void *ibuf,
                                 unsigned long addr, unsigned len)
 {
        switch (type) {

-- 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to