]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/x86/xen/enlighten.c
xen: allow some cr4 updates
[mirror_ubuntu-artful-kernel.git] / arch / x86 / xen / enlighten.c
index 35ddaf50180a5bbac5675d2636b578f4bc40bc0d..f6876485ee7d7b99870be8a3cbe952eadb852297 100644 (file)
@@ -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)