x86/HVM: attempts to emulate FPU insns need to set fpu_initialised
authorJan Beulich <jbeulich@suse.com>
Tue, 26 Jun 2018 06:41:08 +0000 (08:41 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 26 Jun 2018 06:41:08 +0000 (08:41 +0200)
commit3310e3cd648f3713c824790bd71d8ec405a09d05
tree07879512cf41261d6f59fbbcff08131086e6a71e
parent2b222ddede90a110e0b7a570ba29c74779692490
x86/HVM: attempts to emulate FPU insns need to set fpu_initialised

My original way of thinking here was that this would be set anyway at
the point state gets reloaded after the adjustments hvmemul_put_fpu()
does, but the flag should already be set before that - after all the
guest may never again touch the FPU before e.g. getting migrated/saved.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Paul Durrant <paul.durrant@citrix.com>
xen/arch/x86/hvm/emulate.c