Searched refs:xstate (Results 1 – 10 of 10) sorted by relevance
/xen/tools/tests/cpu-policy/ |
A D | test-cpu-policy.c | 186 .xstate.xcr0_low = 7, in test_cpuid_serialise_success() 430 .xstate.raw[0].a = 0xc2, in test_cpuid_out_of_range_clearing() 431 .xstate.raw[1].a = 0xc2, in test_cpuid_out_of_range_clearing() 445 .xstate.raw[0].a = 0xc2, in test_cpuid_out_of_range_clearing() 446 .xstate.raw[1].a = 0xc2, in test_cpuid_out_of_range_clearing() 459 .xstate.raw[0].a = 0xc2, in test_cpuid_out_of_range_clearing() 460 .xstate.raw[1].a = 0xc2, in test_cpuid_out_of_range_clearing() 472 .xstate.raw[0].a = 0xc2, in test_cpuid_out_of_range_clearing() 482 .xstate.raw[0].a = 1, in test_cpuid_out_of_range_clearing() 496 .xstate.raw[0].a = 2, in test_cpuid_out_of_range_clearing() [all …]
|
/xen/xen/lib/x86/ |
A D | cpuid.c | 157 cpuid_count_leaf(0xd, 0, &p->xstate.raw[0]); in x86_cpuid_policy_fill_native() 158 cpuid_count_leaf(0xd, 1, &p->xstate.raw[1]); in x86_cpuid_policy_fill_native() 163 BUILD_BUG_ON(ARRAY_SIZE(p->xstate.raw) > 63); in x86_cpuid_policy_fill_native() 166 ARRAY_SIZE(p->xstate.raw)); ++i ) in x86_cpuid_policy_fill_native() 169 cpuid_count_leaf(0xd, i, &p->xstate.raw[i]); in x86_cpuid_policy_fill_native() 222 memset(p->xstate.raw, 0, sizeof(p->xstate.raw)); in x86_cpuid_policy_clear_out_of_range_leaves() 226 BUILD_BUG_ON(ARRAY_SIZE(p->xstate.raw) > 63); in x86_cpuid_policy_clear_out_of_range_leaves() 231 zero_leaves(p->xstate.raw, i, in x86_cpuid_policy_clear_out_of_range_leaves() 232 ARRAY_SIZE(p->xstate.raw) - 1); in x86_cpuid_policy_clear_out_of_range_leaves() 346 COPY_LEAF(leaf, 0, &p->xstate.raw[0]); in x86_cpuid_copy_to_buffer() [all …]
|
/xen/xen/include/xen/lib/x86/ |
A D | cpuid.h | 226 } xstate; member 289 fs[FEATURESET_Da1] = p->xstate.Da1; in cpuid_policy_to_featureset() 306 p->xstate.Da1 = fs[FEATURESET_Da1]; in cpuid_featureset_to_policy() 317 return ((uint64_t)p->xstate.xcr0_high << 32) | p->xstate.xcr0_low; in cpuid_policy_xcr0_max() 322 uint64_t val = p->xstate.xcr0_high | p->xstate.xss_high; in cpuid_policy_xstates() 324 return (val << 32) | p->xstate.xcr0_low | p->xstate.xss_low; in cpuid_policy_xstates()
|
/xen/xen/arch/x86/ |
A D | cpuid.c | 155 unsigned int i, Da1 = p->xstate.Da1; in recalculate_xstate() 161 memset(&p->xstate, 0, sizeof(p->xstate)); in recalculate_xstate() 198 p->xstate.max_size = xstate_size; in recalculate_xstate() 199 p->xstate.xcr0_low = xstates & ~XSTATE_XSAVES_ONLY; in recalculate_xstate() 202 p->xstate.Da1 = Da1; in recalculate_xstate() 203 if ( p->xstate.xsaves ) in recalculate_xstate() 218 p->xstate.comp[i].size = xstate_sizes[i]; in recalculate_xstate() 219 p->xstate.comp[i].offset = xstate_offsets[i]; in recalculate_xstate() 1036 if ( p->xstate.xsaves ) in guest_cpuid() 1123 BUILD_BUG_ON(sizeof(raw_cpuid_policy.xstate) != in build_assertions() [all …]
|
A D | xstate.c | 764 struct xsave_struct *xstate in read_bndcfgu() local 774 : "=m" (*xstate) in read_bndcfgu() 775 : "a" (X86_XCR0_BNDCSR), "d" (0), "D" (xstate) ); in read_bndcfgu() 777 bndcsr = (void *)(xstate + 1); in read_bndcfgu() 782 : "=m" (*xstate) in read_bndcfgu() 783 : "a" (X86_XCR0_BNDCSR), "d" (0), "D" (xstate) ); in read_bndcfgu() 785 bndcsr = (void *)xstate + xstate_offsets[X86_XCR0_BNDCSR_POS]; in read_bndcfgu() 791 return xstate->xsave_hdr.xstate_bv & X86_XCR0_BNDCSR ? bndcsr->bndcfgu : 0; in read_bndcfgu() 799 struct xsave_struct *xstate = v->arch.xsave_area; in xstate_set_init() local 812 memset(&xstate->xsave_hdr, 0, sizeof(xstate->xsave_hdr)); in xstate_set_init()
|
A D | x86_emulate.c | 66 if ( current->domain->arch.cpuid->xstate.xgetbv1 ) in x86emul_read_xcr()
|
A D | msr.c | 290 if ( !cp->xstate.xsaves ) in guest_rdmsr() 524 if ( !cp->xstate.xsaves ) in guest_wrmsr()
|
A D | Makefile | 73 obj-y += xstate.o
|
A D | domctl.c | 154 uint32_t eax = p->xstate.Da1; in domain_cpu_policy_changed()
|
/xen/tools/tests/x86_emulator/ |
A D | x86-emulate.h | 174 #define cpu_has_xgetbv1 (cpu_has_xsave && cp.xstate.xgetbv1)
|
Completed in 16 milliseconds