]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
x86/xstate: fix xcomp_bv initialization
authorJan Beulich <jbeulich@suse.com>
Mon, 1 Feb 2016 12:52:50 +0000 (13:52 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 1 Feb 2016 12:52:50 +0000 (13:52 +0100)
commit104a409ebce4499a6c04e5d28075cd6ee4991977
treede15ca8b67c7f755b5018c776d431b95b548a2ec
parent24fdd3da8aae0fb386d781f98b5abe4b7dd03d88
x86/xstate: fix xcomp_bv initialization

We must not clear the compaction bit when using XSAVES/XRSTORS. And
we need to guarantee that xcomp_bv never has any bits clear which
are set in xstate_bv (which requires partly undoing commit 83ae0bb226
["x86/xsave: simplify xcomp_bv initialization"]). Split initialization
of xcomp_bv from the other FPU/SSE/AVX related state setup in
arch_set_info_guest() and hvm_load_cpu_ctxt().

Reported-by: Harmandeep Kaur <write.harmandeep@gmail.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain.c
xen/arch/x86/hvm/hvm.c