Home
last modified time | relevance | path

Searched refs:xcr0 (Results 1 – 10 of 10) sorted by relevance

/xen/xen/arch/x86/
A Dxstate.c62 this_cpu(xcr0) = xfeatures; in set_xcr0()
68 return this_cpu(xcr0); in get_xcr0()
538 v->arch.xcr0 = 0; in xstate_alloc_save_area()
554 bool ok = set_xcr0(xcr0); in _xstate_ctxt_size()
571 if ( xcr0 == 0 ) in xstate_ctxt_size()
652 if ( (xcr0 & X86_XCR0_YMM) && !(xcr0 & X86_XCR0_SSE) ) in valid_xcr0()
667 return !(xcr0 & X86_XCR0_BNDREGS) == !(xcr0 & X86_XCR0_BNDCSR); in valid_xcr0()
679 !valid_xcr0(xcr0) || in validate_xstate()
797 unsigned long xcr0 = this_cpu(xcr0); in xstate_set_init() local
807 if ( (~xcr0 & mask) && !set_xcr0(xcr0 | mask) ) in xstate_set_init()
[all …]
A Di387.c36 ok = set_xcr0(v->arch.xcr0 ?: XSTATE_FP_SSE); in fpu_xrstor()
149 ok = set_xcr0(v->arch.xcr0 ?: XSTATE_FP_SSE); in fpu_xsave()
A Dx86_emulate.c62 *val = current->arch.xcr0; in x86emul_read_xcr()
A Ddomctl.c1020 #define PV_XSAVE_SIZE(xcr0) (PV_XSAVE_HDR_SIZE + xstate_ctxt_size(xcr0)) in arch_do_domctl() argument
1058 (void *)&v->arch.xcr0, in arch_do_domctl()
1059 sizeof(v->arch.xcr0)) ) in arch_do_domctl()
1062 offset += sizeof(v->arch.xcr0); in arch_do_domctl()
1152 v->arch.xcr0 = _xcr0; in arch_do_domctl()
A Ddomain.c1723 u64 xcr0 = n->arch.xcr0 ?: XSTATE_FP_SSE; in __context_switch() local
1725 if ( xcr0 != get_xcr0() && !set_xcr0(xcr0) ) in __context_switch()
/xen/xen/include/asm-x86/
A Dxstate.h100 uint64_t xcr0, uint64_t xcr0_accum,
110 unsigned int xstate_ctxt_size(u64 xcr0);
A Ddomain.h615 uint64_t xcr0; member
/xen/xen/arch/x86/hvm/
A Dhvm.c344 uint64_t xcr0 = get_xcr0(); in hvm_set_guest_bndcfgs() local
351 xcr0 | X86_XCR0_BNDREGS | X86_XCR0_BNDCSR); in hvm_set_guest_bndcfgs()
359 if ( handle_xsetbv(XCR_XFEATURE_ENABLED_MASK, xcr0) ) in hvm_set_guest_bndcfgs()
1201 #define HVM_CPU_XSAVE_SIZE(xcr0) (offsetof(struct hvm_hw_cpu_xsave, \ argument
1203 xstate_ctxt_size(xcr0))
1221 ctxt->xcr0 = v->arch.xcr0; in hvm_save_cpu_xsave_states()
1297 err = validate_xstate(d, ctxt->xcr0, ctxt->xcr0_accum, in hvm_load_cpu_xsave_states()
1305 ctxt->xcr0, ctxt->save_area.xsave_hdr.xstate_bv, err); in hvm_load_cpu_xsave_states()
1350 v->arch.xcr0 = ctxt->xcr0; in hvm_load_cpu_xsave_states()
2031 hvm_monitor_crX(XCR0, new_bv, current->arch.xcr0); in hvm_handle_xsetbv()
/xen/xen/include/public/arch-x86/hvm/
A Dsave.h577 uint64_t xcr0; /* Updated by XSETBV */ member
/xen/xen/arch/x86/x86_emulate/
A Dx86_emulate.c1392 uint64_t xcr0; in _get_fpu() local
1399 ops->read_xcr(0, &xcr0, ctxt) != X86EMUL_OKAY ) in _get_fpu()
1402 xcr0 = 0; in _get_fpu()
1408 if ( !(xcr0 & X86_XCR0_ZMM) || !(xcr0 & X86_XCR0_HI_ZMM) || in _get_fpu()
1409 !(xcr0 & X86_XCR0_OPMASK) ) in _get_fpu()
1413 if ( !(xcr0 & X86_XCR0_SSE) || !(xcr0 & X86_XCR0_YMM) ) in _get_fpu()
1418 if ( !(xcr0 & X86_XCR0_SSE) || !(xcr0 & X86_XCR0_OPMASK) ) in _get_fpu()
2494 uint64_t xcr0, bndcfg; in adjust_bnd() local
2500 if ( !ops->read_xcr || ops->read_xcr(0, &xcr0, ctxt) != X86EMUL_OKAY || in adjust_bnd()
2501 !(xcr0 & X86_XCR0_BNDREGS) || !(xcr0 & X86_XCR0_BNDCSR) ) in adjust_bnd()

Completed in 57 milliseconds