From: Marcelo Tosatti Subject: [patch 3/6] KVM: pvmmu: kvm_write_cr3() inline asm fix Date: Mon, 17 Mar 2008 09:19:05 -0300 Message-ID: <20080317122039.853670246@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=cr3-register 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 Let the compiler choose register placing. All we care is that "trap" value gets retained. 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 @@ -138,7 +138,7 @@ static void kvm_write_cr3(unsigned long _ASM_EXTABLE(0b, 2b) : "=&r" (trap) : "n" (1UL), "n" (0UL), - "b" (cache->entry[idx].host_cr3), + "r" (cache->entry[idx].host_cr3), "m" (__force_order)); if (!trap) goto out; -- ------------------------------------------------------------------------- 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/