WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-3.1-testing] x86: When emulating PV RDMSR/WRMSR, on

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.1-testing] x86: When emulating PV RDMSR/WRMSR, only look at low 32 bits of RCX.
From: "Xen patchbot-3.1-testing" <patchbot-3.1-testing@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 14 Dec 2007 10:20:23 -0800
Delivery-date: Fri, 14 Dec 2007 10:20:40 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.1-testing] x86: When emulating PV RDMSR/WRMSR, only look at low 32 bits of RCX., Xen patchbot-3.1-testing <=