|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-3.4-testing] x86: fix guest reads of CR4.
# 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 <=
|
|
|
|
|