]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
x86/xsave: simplify xcomp_bv initialization
authorJan Beulich <jbeulich@suse.com>
Thu, 14 Jan 2016 09:42:53 +0000 (10:42 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 14 Jan 2016 09:42:53 +0000 (10:42 +0100)
commit83ae0bb2260c71e8dcec538dd477f7253aaef327
treed6f05e7303a0d15eaf50eb34a6490b680b44b2bf
parenta3b6844d3b7ac8445669337c222b0cff2cf90484
x86/xsave: simplify xcomp_bv initialization

This simplifies a number of pointless conditionals: Bits 0 and 1 of
xcomp_bv don't matter anyway, and as long as none of bits 2..62 are
set, setting bit 63 is pointless too unless XSAVES is in use.

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
xen/arch/x86/i387.c