Re: [Xen-devel] [PATCH v2] x86/xsave: simplify xcomp_bv initialization

2016-01-13 Thread Andrew Cooper
On 13/01/16 07:30, Jan Beulich wrote: > 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 Reviewed-by: Andrew Coop

[Xen-devel] [PATCH v2] x86/xsave: simplify xcomp_bv initialization

2016-01-12 Thread Jan Beulich
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 --- v2: Retain setting of bit 63 on XSAVES-capable systems. --- a/xen/a