From: "Jan Beulich" Subject: Re: [PATCH] x86/fpu: CR0.TS should be set before trap into PV guest's #NM exception handle Date: Mon, 02 Dec 2013 08:34:15 +0000 Message-ID: <529C54170200007800108879@nat28.tlf.novell.com> References: <52967C45.3030506@prgmr.com> <529681B9.4010503@prgmr.com> <52986F90020000780010814A@nat28.tlf.novell.com> <52992E4A.3050109@prgmr.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VnOxR-0004Ud-KF for xen-devel@lists.xenproject.org; Mon, 02 Dec 2013 08:34:22 +0000 In-Reply-To: <52992E4A.3050109@prgmr.com> 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: Sarah Newman Cc: xen-devel , Luke Crawford List-Id: xen-devel@lists.xenproject.org >>> On 30.11.13 at 01:16, Sarah Newman wrote: > On 11/29/2013 01:42 AM, Jan Beulich wrote: >> I'm personally not eager to see something like this go in, most >> importantly because I think bugs should be fixed where they >> got introduced, not worked around elsewhere, and also >> because I think that a generally available workaround would >> lower the chances of the bug getting fixed properly. > If the proper bug fix was released first would that help? Perhaps. >> Apart from that this workaround of yours would have very >> ugly behavior: If a guest later got updated to a fixed kernel, >> you'd have to alter its configuration along with booting into >> the new kernel (i.e. a simple reboot of the VM won't do), or >> else your new kernel would crash due to not clearing CR0.TS >> before trying to restore FPU context. > Assuming it predictably crashed, that would be easier to deal with than > occasional silent memory > corruption. > > I think something could be done with the on_reboot action, maybe a > reload-restart? The thing is that a guest admin may not have access to the VM's config file, i.e. a satisfactory solution ought to involve only guest side actions. Jan