x86: correctly set nonlazy_xstate_used when loading full state
authorJan Beulich <jbeulich@suse.com>
Mon, 9 Jul 2018 08:51:02 +0000 (10:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 9 Jul 2018 08:51:02 +0000 (10:51 +0200)
commitf46bf0e101ca63118b9db2616e8f51e972d7f563
tree0b3d9dfe7c64604f01f071cf57e21115f9fb508d
parent8a36fdafe6415210ec2c64f83407af79ac7a88c7
x86: correctly set nonlazy_xstate_used when loading full state

In this case, just like xcr0_accum, nonlazy_xstate_used should always be
set to the intended new value, rather than possibly leaving the flag set
from a prior state load.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domctl.c
xen/arch/x86/hvm/hvm.c