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>
This commit is contained in:
committed by
Thomas Gleixner
parent
349c709f42
commit
2956a3511c
@ -648,8 +648,10 @@ static unsigned long xen_read_cr2_direct(void)
|
|||||||
|
|
||||||
static void xen_write_cr4(unsigned long cr4)
|
static void xen_write_cr4(unsigned long cr4)
|
||||||
{
|
{
|
||||||
/* Just ignore cr4 changes; Xen doesn't allow us to do
|
cr4 &= ~X86_CR4_PGE;
|
||||||
anything anyway. */
|
cr4 &= ~X86_CR4_PSE;
|
||||||
|
|
||||||
|
native_write_cr4(cr4);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned long xen_read_cr3(void)
|
static unsigned long xen_read_cr3(void)
|
||||||
|
Reference in New Issue
Block a user