projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
349c709
)
xen: allow some cr4 updates
author
Jeremy Fitzhardinge
<jeremy@goop.org>
Mon, 26 May 2008 22:31:04 +0000
(23:31 +0100)
committer
Thomas Gleixner
<tglx@linutronix.de>
Tue, 27 May 2008 08:11:35 +0000
(10:11 +0200)
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>
arch/x86/xen/enlighten.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/xen/enlighten.c
b/arch/x86/xen/enlighten.c
index 35ddaf50180a5bbac5675d2636b578f4bc40bc0d..f6876485ee7d7b99870be8a3cbe952eadb852297 100644
(file)
--- a/
arch/x86/xen/enlighten.c
+++ b/
arch/x86/xen/enlighten.c
@@
-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)