aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/enlighten.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-05-26 18:31:04 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-27 04:11:35 -0400
commit2956a3511c8c5dccb1d4739ead17c7c3c23a24b7 (patch)
tree8d89ef507d10826f4f2556000fc8ea6566784ce1 /arch/x86/xen/enlighten.c
parent349c709f42453707f74bece0d9d35ee5b3842893 (diff)
xen: allow some cr4 updates
The guest can legitimately change things like cr4.OSFXSR and OSXMMEXCPT, so let it. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r--arch/x86/xen/enlighten.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 35ddaf50180a..f6876485ee7d 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -648,8 +648,10 @@ static unsigned long xen_read_cr2_direct(void)
648 648
649static void xen_write_cr4(unsigned long cr4) 649static void xen_write_cr4(unsigned long cr4)
650{ 650{
651 /* Just ignore cr4 changes; Xen doesn't allow us to do 651 cr4 &= ~X86_CR4_PGE;
652 anything anyway. */ 652 cr4 &= ~X86_CR4_PSE;
653
654 native_write_cr4(cr4);
653} 655}
654 656
655static unsigned long xen_read_cr3(void) 657static unsigned long xen_read_cr3(void)