提交 2956a351 编写于 作者: J Jeremy Fitzhardinge 提交者: Thomas Gleixner

xen: allow some cr4 updates

The guest can legitimately change things like cr4.OSFXSR and
OSXMMEXCPT, so let it.
Signed-off-by: NJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 349c709f
...@@ -648,8 +648,10 @@ static unsigned long xen_read_cr2_direct(void) ...@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册