Re: [Xen-devel] Restoring FPU exception state

2016-02-24 Thread Jan Beulich
>>> On 24.02.16 at 11:33, wrote: >> From: Tian, Kevin >> Sent: Thursday, February 18, 2016 2:31 PM >> >> > >> > > If the VCPU is descheduled between these two checks, the contents of >> > > FCS/FDS is lost, Windows will notice and BugCheck. >> > > >> > > When saving a VCPUs FPU state, Xen first

Re: [Xen-devel] Restoring FPU exception state

2016-02-24 Thread Tian, Kevin
> From: Tian, Kevin > Sent: Thursday, February 18, 2016 2:31 PM > > > > > > If the VCPU is descheduled between these two checks, the contents of > > > FCS/FDS is lost, Windows will notice and BugCheck. > > > > > > When saving a VCPUs FPU state, Xen first uses a REX.W prefixed XSAVE and > > > notic

Re: [Xen-devel] Restoring FPU exception state

2016-02-18 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@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 Mes

Re: [Xen-devel] Restoring FPU exception state

2016-02-18 Thread Jan Beulich
>>> On 18.02.16 at 09:54, wrote: >> -Original Message- >> From: Jan Beulich [mailto:jbeul...@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.1

Re: [Xen-devel] Restoring FPU exception state

2016-02-18 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@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 Mes

Re: [Xen-devel] Restoring FPU exception state

2016-02-18 Thread Jan Beulich
>>> On 18.02.16 at 09:41, wrote: >> -Original Message- >> From: Jan Beulich [mailto:jbeul...@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.1

Re: [Xen-devel] Restoring FPU exception state

2016-02-18 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@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

Re: [Xen-devel] Restoring FPU exception state

2016-02-18 Thread Jan Beulich
>>> 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 un

Re: [Xen-devel] Restoring FPU exception state

2016-02-17 Thread Tian, Kevin
> From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Wednesday, February 17, 2016 9:46 PM > > >>> On 17.02.16 at 14:08, wrote: > > The FPU exception state includes 4 registers: > > > > - 64-bit FIP > > - 16-bit FCS > > - 64-bit FDP > > - 16-bit FDS > > > > When a CPU takes an FPU exception in l

Re: [Xen-devel] Restoring FPU exception state

2016-02-17 Thread Jan Beulich
>>> On 17.02.16 at 14:08, wrote: > The FPU exception state includes 4 registers: > > - 64-bit FIP > - 16-bit FCS > - 64-bit FDP > - 16-bit FDS > > When a CPU takes an FPU exception in long mode, all 4 registers are > fully updated. This state can be saved with a combination of REX.W > prefixed