From: Christoph Egger Subject: [PATCH] fix msr read emulation Date: Wed, 11 Mar 2009 19:27:25 +0100 Message-ID: <200903111927.25904.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_NKAuJ75paNYSS0A" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --Boundary-00=_NKAuJ75paNYSS0A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Make hvmemul_read_msr() working. Please apply on -unstable and 3.3-testing. Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Jochen Polster, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_NKAuJ75paNYSS0A Content-Type: text/x-diff; charset="us-ascii"; name="xen_emulate_msr.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_emulate_msr.diff" diff -r 587e81dd3540 xen/arch/x86/hvm/emulate.c --- a/xen/arch/x86/hvm/emulate.c Mon Mar 02 14:19:35 2009 +0000 +++ b/xen/arch/x86/hvm/emulate.c Sun Mar 11 19:16:16 2009 +0100 @@ -763,7 +763,7 @@ static int hvmemul_read_msr( if ( (rc = hvm_msr_read_intercept(&_regs)) != 0 ) return rc; - *val = ((uint64_t)(uint32_t)_regs.edx << 32) || (uint32_t)_regs.eax; + *val = ((uint64_t)_regs.edx << 32) | (uint64_t)_regs.eax; return X86EMUL_OKAY; } --Boundary-00=_NKAuJ75paNYSS0A Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_NKAuJ75paNYSS0A--