From: Marcelo Tosatti Subject: [patch 5/6] KVM: pvmmu: kvm_patch might be called after initialization Date: Mon, 17 Mar 2008 09:19:07 -0300 Message-ID: <20080317122039.980090273@localhost.localdomain> References: <20080317121902.568106309@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel , Marcelo Tosatti To: Avi Kivity Return-path: Content-Disposition: inline; filename=fix-cr3-cache List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org kvm_patch might be called during module load. Signed-off-by: Marcelo Tosatti 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/