[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.1-testing] x86: When emulating PV RDMSR/WRMSR, only look at low 32 bits of RCX.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1197633441 0
# Node ID 7137451199dd023d367451bd63cffc95d24104ee
# Parent  2a466f253a04b1f49cb29da52b610cca3048352a
x86: When emulating PV RDMSR/WRMSR, only look at low 32 bits of RCX.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>

This is based on part of:
xen-unstable changeset:   16616:136f80d219588b5e45a5d13e19dd51a2401504f5
xen-unstable date:        Fri Dec 14 11:37:02 2007 +0000
---
 xen/arch/x86/traps.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 2a466f253a04 -r 7137451199dd xen/arch/x86/traps.c
--- a/xen/arch/x86/traps.c      Fri Dec 14 11:55:51 2007 +0000
+++ b/xen/arch/x86/traps.c      Fri Dec 14 11:57:21 2007 +0000
@@ -1711,7 +1711,7 @@ static int emulate_privileged_op(struct 
         eax = regs->eax;
         edx = regs->edx;
         res = ((u64)edx << 32) | eax;
-        switch ( regs->ecx )
+        switch ( (u32)regs->ecx )
         {
 #ifdef CONFIG_X86_64
         case MSR_FS_BASE:
@@ -1750,7 +1750,7 @@ static int emulate_privileged_op(struct 
         break;
 
     case 0x32: /* RDMSR */
-        switch ( regs->ecx )
+        switch ( (u32)regs->ecx )
         {
 #ifdef CONFIG_X86_64
         case MSR_FS_BASE:

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.