Home
last modified time | relevance | path

Searched refs:xsave_size (Results 1 – 3 of 3) sorted by relevance

/linux/arch/x86/boot/startup/
H A Dsev-shared.c229 u32 xsave_size = 0x240; in snp_cpuid_calc_xsave_size() local
245 xsave_size += e->eax; in snp_cpuid_calc_xsave_size()
247 xsave_size = max(xsave_size, e->eax + e->ebx); in snp_cpuid_calc_xsave_size()
258 return xsave_size; in snp_cpuid_calc_xsave_size()
338 u32 xsave_size; in snp_cpuid_postprocess() local
370 xsave_size = snp_cpuid_calc_xsave_size(xcr0 | xss, compacted); in snp_cpuid_postprocess()
371 if (!xsave_size) in snp_cpuid_postprocess()
374 leaf->ebx = xsave_size; in snp_cpuid_postprocess()
/linux/tools/testing/selftests/kvm/x86/
H A Damx_test.c55 u32 xsave_size; member
102 xtile.xsave_size = this_cpu_property(X86_PROPERTY_XSTATE_TILE_SIZE); in check_xtile_info()
103 GUEST_ASSERT(xtile.xsave_size == 8192); in check_xtile_info()
104 GUEST_ASSERT(sizeof(struct tile_data) >= xtile.xsave_size); in check_xtile_info()
/linux/tools/testing/selftests/mm/
H A Dprotection_keys.c1487 size_t xsave_size = cpu_max_xsave_size(); in test_ptrace_modifies_pkru() local
1528 xsave = (void *)malloc(xsave_size); in test_ptrace_modifies_pkru()
1533 iov.iov_len = xsave_size; in test_ptrace_modifies_pkru()
1546 memset(xsave, 0xCC, xsave_size); in test_ptrace_modifies_pkru()
1561 memset(xsave, 0xCC, xsave_size); in test_ptrace_modifies_pkru()
1574 memset(xsave, 0xCC, xsave_size); in test_ptrace_modifies_pkru()
1588 memset(xsave, 0xCC, xsave_size); in test_ptrace_modifies_pkru()