Re: [Xen-devel] [PATCH v4 3/4] xen/hvm: introduce a flags field in the CPU save record

2015-11-30 Thread Jan Beulich
>>> On 27.11.15 at 17:15, wrote: > El 26/11/15 a les 15.32, Jan Beulich ha escrit: > On 25.11.15 at 16:18, wrote: >>> --- a/xen/arch/x86/hvm/hvm.c >>> +++ b/xen/arch/x86/hvm/hvm.c >>> @@ -2085,16 +2091,17 @@ static int hvm_load_cpu_ctxt(struct

Re: [Xen-devel] [PATCH v4 3/4] xen/hvm: introduce a flags field in the CPU save record

2015-11-26 Thread Jan Beulich
>>> On 25.11.15 at 16:18, wrote: > --- a/xen/arch/x86/hvm/hvm.c > +++ b/xen/arch/x86/hvm/hvm.c > @@ -1798,8 +1798,7 @@ static int hvm_save_cpu_ctxt(struct domain *d, > hvm_domain_context_t *h) > > if ( v->fpu_initialised ) > memcpy(ctxt.fpu_regs,

[Xen-devel] [PATCH v4 3/4] xen/hvm: introduce a flags field in the CPU save record

2015-11-25 Thread Roger Pau Monne
Introduce a new flags field and use bit 0 to signal if the FPU has been initialised or not. Previously Xen always wrongly assumed the FPU was initialised on restore. Signed-off-by: Roger Pau Monné Cc: Jan Beulich Cc: Andrew Cooper