x86/HVM: attempts to emulate FPU insns need to set fpu_initialised
authorJan Beulich <jbeulich@suse.com>
Tue, 26 Jun 2018 06:54:14 +0000 (08:54 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 26 Jun 2018 06:54:14 +0000 (08:54 +0200)
commit1c88cadbe57b5c3a5bfb35507fea1ba6eafee219
tree56a873b0b4627515490ce718860fc712f906b94e
parent688e0c364efa93f5882e2788134b693d0f65254b
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>
Release-acked-by: Juergen Gross <jgross@suse.com>
master commit: 3310e3cd648f3713c824790bd71d8ec405a09d05
master date: 2018-06-26 08:41:08 +0200
xen/arch/x86/hvm/emulate.c