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.4-testing] x86: fix guest reads of CR4.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.4-testing] x86: fix guest reads of CR4.
From: "Xen patchbot-3.4-testing" <patchbot-3.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 27 Nov 2009 00:40:57 -0800
Delivery-date: Fri, 27 Nov 2009 00:42:28 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 1259310828 0
# Node ID 7c0c26abbf2824fcf5f4096f011b1c24409ac21a
# Parent  1d30a3d836ed8e2a108f9b48fb18142d589bfbc9
x86: fix guest reads of CR4.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   20506:8a0f156487b0
xen-unstable date:        Thu Nov 26 11:24:50 2009 +0000
---
 xen/arch/x86/traps.c |    7 +------
 1 files changed, 1 insertion(+), 6 deletions(-)

diff -r 1d30a3d836ed -r 7c0c26abbf28 xen/arch/x86/traps.c
--- a/xen/arch/x86/traps.c      Fri Nov 27 08:31:16 2009 +0000
+++ b/xen/arch/x86/traps.c      Fri Nov 27 08:33:48 2009 +0000
@@ -2029,12 +2029,7 @@ static int emulate_privileged_op(struct 
             break;
 
         case 4: /* Read CR4 */
-            /*
-             * Guests can read CR4 to see what features Xen has enabled. We
-             * therefore lie about PGE and PSE as they are unavailable to
-             * guests.
-             */
-            *reg = read_cr4() & ~(X86_CR4_PGE|X86_CR4_PSE);
+            *reg = v->arch.guest_context.ctrlreg[4];
             break;
 
         default:

_______________________________________________
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.4-testing] x86: fix guest reads of CR4., Xen patchbot-3.4-testing <=