Home
last modified time | relevance | path

Searched refs:cpu_policy (Results 1 – 9 of 9) sorted by relevance

/tools/tests/x86_emulator/
A Dx86-emulate.h87 extern struct cpu_policy cpu_policy;
152 #define cpu_has_fpu cpu_policy.basic.fpu
153 #define cpu_has_mmx cpu_policy.basic.mmx
154 #define cpu_has_fxsr cpu_policy.basic.fxsr
155 #define cpu_has_sse cpu_policy.basic.sse
156 #define cpu_has_sse2 cpu_policy.basic.sse2
169 #define cpu_has_bmi1 cpu_policy.feat.bmi1
170 #define cpu_has_bmi2 cpu_policy.feat.bmi2
179 #define cpu_has_sha cpu_policy.feat.sha
188 #define cpu_has_gfni cpu_policy.feat.gfni
[all …]
A Dx86-emulate.c28 struct cpu_policy cpu_policy; variable
78 x86_cpu_policy_fill_native(&cpu_policy); in emul_test_init()
84 cpu_policy.basic.movbe = true; in emul_test_init()
85 cpu_policy.feat.invpcid = true; in emul_test_init()
86 cpu_policy.feat.adx = true; in emul_test_init()
87 cpu_policy.feat.rdpid = true; in emul_test_init()
88 cpu_policy.feat.wrmsrns = true; in emul_test_init()
89 cpu_policy.extd.clzero = true; in emul_test_init()
A Dtest_x86_emulator.c784 if ( cpu_policy.x86_vendor != X86_VENDOR_AMD && in zap_fpsel()
785 cpu_policy.x86_vendor != X86_VENDOR_HYGON ) in zap_fpsel()
919 ctxt.cpu_policy = &cpu_policy; in main()
1493 vendor_native = cpu_policy.x86_vendor; in main()
1494 for ( cpu_policy.x86_vendor = X86_VENDOR_AMD; ; ) in main()
1496 unsigned int v = cpu_policy.x86_vendor == X86_VENDOR_INTEL; in main()
1497 const char *vendor = cpu_policy.x86_vendor == X86_VENDOR_INTEL ? "Intel" : "AMD"; in main()
1533 if ( cpu_policy.x86_vendor == X86_VENDOR_INTEL ) in main()
1535 cpu_policy.x86_vendor = X86_VENDOR_INTEL; in main()
1537 cpu_policy.x86_vendor = vendor_native; in main()
/tools/libs/guest/
A Dxg_cpuid_x86.c122 *nr_msrs = sysctl.u.cpu_policy.nr_msrs; in xc_cpu_policy_get_size()
145 sysctl.u.cpu_policy.index = index; in get_system_cpu_policy()
148 sysctl.u.cpu_policy.nr_msrs = *nr_msrs; in get_system_cpu_policy()
160 *nr_msrs = sysctl.u.cpu_policy.nr_msrs; in get_system_cpu_policy()
186 domctl.u.cpu_policy.nr_msrs = *nr_msrs; in get_domain_cpu_policy()
198 *nr_msrs = domctl.u.cpu_policy.nr_msrs; in get_domain_cpu_policy()
219 domctl.u.cpu_policy.err_leaf = -1; in xc_set_domain_cpu_policy()
220 domctl.u.cpu_policy.err_subleaf = -1; in xc_set_domain_cpu_policy()
221 domctl.u.cpu_policy.err_msr = -1; in xc_set_domain_cpu_policy()
230 domctl.u.cpu_policy.nr_msrs = nr_msrs; in xc_set_domain_cpu_policy()
[all …]
A Dxg_private.h177 struct cpu_policy policy;
/tools/fuzz/cpu-policy/
A Dafl-policy-fuzzer.c19 static void check_policy(struct cpu_policy *cp) in check_policy()
21 struct cpu_policy new = {}; in check_policy()
135 struct cpu_policy *cp = NULL; in main()
/tools/tests/cpu-policy/
A Dtest-cpu-policy.c101 struct cpu_policy p; in test_cpuid_current()
121 struct cpu_policy p; in test_cpuid_serialise_success()
245 struct cpu_policy p; in test_msr_serialise_success()
428 struct cpu_policy p; in test_cpuid_out_of_range_clearing()
548 struct cpu_policy *p = memdup(&t->p); in test_cpuid_out_of_range_clearing()
572 struct cpu_policy host, guest; in test_is_compatible_success()
612 struct cpu_policy host, guest; in test_is_compatible_failure()
/tools/tests/tsx/
A Dtest-tsx.c296 static void dump_tsx_details(const struct cpu_policy *p, const char *pref) in dump_tsx_details()
308 static void test_guest_policies(const struct cpu_policy *max, in test_guest_policies()
309 const struct cpu_policy *def) in test_guest_policies()
/tools/fuzz/x86_instruction_emulator/
A Dfuzz-emul.c902 ctxt.cpu_policy = &cpu_policy; in LLVMFuzzerTestOneInput()

Completed in 29 milliseconds