Skip to contentSkip to conversation

KVM: use lockless __emulator_write_phys in kvm_hypercall_mmu_write()

PATCH Marcelo Tosatti 1 participant 1 message Feb 20, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Subject says it all.

arch/x86/kvm/x86.c +1 -1
Index: kvm.paravirt2/arch/x86/kvm/x86.c
===================================================================
@@ -2400,7 +2400,7 @@ static int kvm_hypercall_mmu_write(struc
 			bytes = 4;
 	}
 
-	if (!emulator_write_phys(vcpu, addr, &value, bytes))
+	if (!__emulator_write_phys(vcpu, addr, &value, bytes))
 		return -KVM_EFAULT;
 
 	return 0;

-------------------------------------------------------------------------
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/