Lines Matching refs:xcr0_accum
177 BUG_ON(!v->arch.xcr0_accum); in expand_xsave_states()
179 BUG_ON(size != xstate_ctxt_size(v->arch.xcr0_accum)); in expand_xsave_states()
240 BUG_ON(!v->arch.xcr0_accum); in compress_xsave_states()
241 BUG_ON(size != xstate_ctxt_size(v->arch.xcr0_accum)); in compress_xsave_states()
246 if ( !(v->arch.xcr0_accum & XSTATE_XSAVES_ONLY) ) in compress_xsave_states()
260 xsave->xsave_hdr.xcomp_bv = v->arch.xcr0_accum | XSTATE_COMPACTION_ENABLED; in compress_xsave_states()
296 if ( v->arch.xcr0_accum & XSTATE_XSAVES_ONLY ) \ in xsave()
409 if ( v->arch.xcr0_accum & XSTATE_XSAVES_ONLY ) \ in xrstor()
458 if ( v->arch.xcr0_accum & XSTATE_XSAVES_ONLY ) in xrstor()
475 ptr->xsave_hdr.xcomp_bv = v->arch.xcr0_accum & XSTATE_XSAVES_ONLY in xrstor()
493 return !!v->arch.xcr0_accum; in xsave_enabled()
539 v->arch.xcr0_accum = 0; in xstate_alloc_save_area()
673 int validate_xstate(u64 xcr0, u64 xcr0_accum, const struct xsave_hdr *hdr) in validate_xstate() argument
677 if ( (hdr->xstate_bv & ~xcr0_accum) || in validate_xstate()
678 (xcr0 & ~xcr0_accum) || in validate_xstate()
680 !valid_xcr0(xcr0_accum) ) in validate_xstate()
683 if ( (xcr0_accum & ~xfeature_mask) || in validate_xstate()
712 mask = new_bv & ~curr->arch.xcr0_accum; in handle_xsetbv()
714 curr->arch.xcr0_accum |= new_bv; in handle_xsetbv()