From patchwork Fri Sep 21 15:28:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Oneiric,SRU] Revert "UBUNTU: SAUCE: fix pv-ops for legacy Xen" Date: Fri, 21 Sep 2012 05:28:02 -0000 From: Stefan Bader X-Patchwork-Id: 185789 Message-Id: <1348241284-14489-3-git-send-email-stefan.bader@canonical.com> To: kernel-team@lists.ubuntu.com This reverts commit 3f3fba59aa5773836d94799d10b692f9b7ea16a0. It turned out that since 2.6.39 the Xen code in the kernel would not try to set OSXSAVE in CR4 to find out whether the feature is supported. Instead it relies on OSXSAVE being set by the HV in the cpuid bits (which will only happen if supported). BugLink: http://bugs.launchpad.net/bugs/1044550 Signed-off-by: Stefan Bader --- arch/x86/xen/enlighten.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 45c27dd..f70bb3d 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -818,7 +818,6 @@ static void xen_write_cr4(unsigned long cr4) { cr4 &= ~X86_CR4_PGE; cr4 &= ~X86_CR4_PSE; - cr4 &= ~X86_CR4_OSXSAVE; native_write_cr4(cr4); }