Skip to content

Commit

Permalink
xen: allow some cr4 updates
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeremy Fitzhardinge authored and Thomas Gleixner committed May 27, 2008
1 parent 349c709 commit 2956a35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,10 @@ static unsigned long xen_read_cr2_direct(void)

static void xen_write_cr4(unsigned long cr4)
{
/* Just ignore cr4 changes; Xen doesn't allow us to do
anything anyway. */
cr4 &= ~X86_CR4_PGE;
cr4 &= ~X86_CR4_PSE;

native_write_cr4(cr4);
}

static unsigned long xen_read_cr3(void)
Expand Down

0 comments on commit 2956a35

Please sign in to comment.