From: Paul Durrant Subject: Re: Restoring FPU exception state Date: Thu, 18 Feb 2016 09:30:11 +0000 Message-ID: <187ef7cdd4d24222964c78ca3016cd3a@AMSPEX02CL03.citrite.net> References: <56C470C1.30503@citrix.com> <56C4879302000078000D32B1@prv-mh.provo.novell.com> <56C58BE702000078000D384D@prv-mh.provo.novell.com> <8fc8c82b85c344b48520ce1f8bb1aa6a@AMSPEX02CL03.citrite.net> <56C593AB02000078000D3895@prv-mh.provo.novell.com> <3481437b24b04253b0c2dffabb5030b5@AMSPEX02CL03.citrite.net> <56C59BD502000078000D38BB@prv-mh.provo.novell.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 1aWKzb-0001km-87 for xen-devel@lists.xenproject.org; Thu, 18 Feb 2016 09:35:23 +0000 In-Reply-To: <56C59BD502000078000D38BB@prv-mh.provo.novell.com> Content-Language: en-US List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Andrew Cooper , Kevin Tian , Feng Wu , David Vrabel , xen-devel List-Id: xen-devel@lists.xenproject.org > -----Original Message----- > From: Jan Beulich [mailto:JBeulich@suse.com] > Sent: 18 February 2016 09:24 > To: Paul Durrant > Cc: Andrew Cooper; David Vrabel; Feng Wu; Kevin Tian; xen-devel > Subject: RE: Restoring FPU exception state > > >>> On 18.02.16 at 09:54, wrote: > >> -----Original Message----- > >> From: Jan Beulich [mailto:JBeulich@suse.com] > >> Sent: 18 February 2016 08:50 > >> To: Paul Durrant; Kevin Tian > >> Cc: Andrew Cooper; David Vrabel; Feng Wu; xen-devel > >> Subject: RE: Restoring FPU exception state > >> > >> >>> On 18.02.16 at 09:41, wrote: > >> >> -----Original Message----- > >> >> From: Jan Beulich [mailto:JBeulich@suse.com] > >> >> Sent: 18 February 2016 08:16 > >> >> To: Kevin Tian > >> >> Cc: Andrew Cooper; David Vrabel; Paul Durrant; Feng Wu; xen-devel > >> >> Subject: RE: Restoring FPU exception state > >> >> > >> >> >>> On 18.02.16 at 07:30, wrote: > >> >> > Interesting. Let me also have a check internally whether there is > other > >> >> > architectural alternative. BTW, not quite related. Could I think finally > >> >> > Xen may allow user to specify OS type as a general per-domain > control, > >> >> > and then Xen can do free optimizations underlying based on that > type? > >> >> > I don't expect we want to expose raw FPU related per-domain > control > >> >> > since it's difficult for users to correctly set it up... > >> >> > >> >> So what if then, with us implying some kind of workaround here > >> >> from the OS type, someone set the OS type to Windows, and > >> >> subsequently MS decided to fix their issue? > >> > > >> > We already get full OS version information from Windows via the > >> > VIRIDIAN_MSR_GUEST_OS_ID MSR so it would be quite straightforward > to > >> work > >> > around the issue for all Windows at the moment and then make the > check > >> more > >> > specific if Microsoft choose to avoid the problem by some other means. > >> > >> That's only if "viridian=1" in the guest config, isn't it? > > > > Yes, but most people are going to run with that on for HVM guests; > > That view may be pretty XenServer centric. It may be but really shouldn't be. Setting viridian on by default for HVM guests has been pretty safe for a long time. > > > in > > general there's no penalty for doing so unless you're running some old and > > buggy OS. If it's turned off then there's nothing Xen can do other than > > continue to behave as it does now. > > > >> Plus - how would > >> we know MS chose to fix their apparent issue? > >> > > > > Well either we'd hear about it or we can run tests on each new version of > > Windows (it wouldn't be hard to add a specific test for this and add it > > XenServer's automated suite). > > Well, if that also covers kernel updates for existing versions of > Windows. > It should do; there's build number and service pack info in the OS id. I'd be disappointed if at least one of these didn't change with a kernel update. > But taking both together, defaulting the behavior based on the > Viridian flag is certainly an option, just that we'd need an override > both ways nevertheless. > Yes, there should definitely be some way to override the default choice. Paul > Jan