From: "Jan Beulich" Subject: Re: xsave=0 workaround needed on 3.2 kernels with Xen 4.1 or Xen-unstable. Date: Tue, 08 May 2012 07:25:51 +0100 Message-ID: <4FA8D88F020000780008230F@nat28.tlf.novell.com> References: <20120430193713.GA12817@phenom.dumpdata.com> <4FA113B902000078000810C3@nat28.tlf.novell.com> <4FA268CD02000078000814E4@nat28.tlf.novell.com> <4FA792C00200007800081F06@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: AP Cc: Jeremy Fitzhardinge , Konrad Rzeszutek Wilk , weidong.han@intel.com, Tim.Deegan@citrix.com, xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 08.05.12 at 01:57, AP wrote: > On Mon, May 7, 2012 at 7:15 AM, Jan Beulich wrote: >> Sure, as it's a kernel problem. It's the kernel that needs logging added, >> to find out why the CR4 write supposedly happening immediately >> prior to the XSETBV (set_in_cr4(X86_CR4_OSXSAVE)) doesn't actually >> happen, or doesn't set the flag. Perhaps something fishy going on > > xen_write_cr4 explicitly turns off X86_CR4_OSXSAVE. > > static void xen_write_cr4(unsigned long cr4) > { > cr4 &= ~X86_CR4_PGE; > cr4 &= ~X86_CR4_PSE; > cr4 &= ~X86_CR4_OSXSAVE; > > native_write_cr4(cr4); > } That's definitely not the case in _any_ upstream Linux release. Which means that this must be introduced by a distro-specific (and broken) patch. Jan