/linux-6.6.21/tools/testing/selftests/kvm/x86_64/ |
D | xcr0_cpuid_test.c | 22 #define ASSERT_XFEATURE_DEPENDENCIES(supported_xcr0, xfeatures, dependencies) \ argument 24 uint64_t __supported = (supported_xcr0) & ((xfeatures) | (dependencies)); \ 26 __GUEST_ASSERT((__supported & (xfeatures)) != (xfeatures) || \ 27 __supported == ((xfeatures) | (dependencies)), \ 29 __supported, (xfeatures), (dependencies)); \ 40 #define ASSERT_ALL_OR_NONE_XFEATURE(supported_xcr0, xfeatures) \ argument 42 uint64_t __supported = (supported_xcr0) & (xfeatures); \ 44 __GUEST_ASSERT(!__supported || __supported == (xfeatures), \ 46 __supported, (xfeatures)); \
|
/linux-6.6.21/arch/x86/kernel/fpu/ |
D | xstate.c | 366 xstate_init_xcomp_bv(&init_fpstate.regs.xsave, init_fpstate.xfeatures); in setup_init_fpu_buf() 406 if (hdr->xfeatures & ~fpstate->user_xfeatures) in validate_user_xstate_header() 559 static unsigned int xstate_calculate_size(u64 xfeatures, bool compacted) in xstate_calculate_size() argument 561 unsigned int topmost = fls64(xfeatures) - 1; in xstate_calculate_size() 568 offset = xfeature_get_offset(xfeatures, topmost); in xstate_calculate_size() 747 u64 xfeatures; in fpu__init_system_xstate() local 821 xfeatures = fpu_kernel_cfg.max_features; in fpu__init_system_xstate() 861 init_fpstate.xfeatures = fpu_kernel_cfg.default_features; in fpu__init_system_xstate() 875 if (xfeatures != fpu_kernel_cfg.max_features) { in fpu__init_system_xstate() 877 xfeatures, fpu_kernel_cfg.max_features); in fpu__init_system_xstate() [all …]
|
D | core.c | 97 if (fpu->fpstate->regs.xsave.header.xfeatures & AVX512_TRACKING_MASK) in update_avx_timestamp() 235 gfpu->xfeatures = fpu_user_cfg.default_features; in fpu_alloc_guest_fpstate() 281 int fpu_enable_guest_xfd_features(struct fpu_guest *guest_fpu, u64 xfeatures) in fpu_enable_guest_xfd_features() argument 286 xfeatures &= ~guest_fpu->xfeatures; in fpu_enable_guest_xfd_features() 287 if (!xfeatures) in fpu_enable_guest_xfd_features() 290 return __xfd_enable_feature(xfeatures, guest_fpu); in fpu_enable_guest_xfd_features() 372 unsigned int size, u64 xfeatures, u32 pkru) in fpu_copy_guest_fpstate_to_uabi() argument 379 __copy_xstate_to_uabi_buf(mb, kstate, xfeatures, pkru, in fpu_copy_guest_fpstate_to_uabi() 385 ustate->xsave.header.xfeatures = XFEATURE_MASK_FPSSE; in fpu_copy_guest_fpstate_to_uabi() 397 if (ustate->xsave.header.xfeatures & ~XFEATURE_MASK_FPSSE) in fpu_copy_uabi_to_guest_fpstate() [all …]
|
D | signal.c | 62 fx_sw->xfeatures = XFEATURE_MASK_FPSSE; in check_xstate_in_sigframe() 110 sw_bytes->xfeatures = fpstate->user_xfeatures; in save_sw_bytes() 122 u32 xfeatures; in save_xstate_epilog() local 139 err |= __get_user(xfeatures, (__u32 __user *)&x->header.xfeatures); in save_xstate_epilog() 152 xfeatures |= XFEATURE_MASK_FPSSE; in save_xstate_epilog() 154 err |= __put_user(xfeatures, (__u32 __user *)&x->header.xfeatures); in save_xstate_epilog() 352 user_xfeatures = fx_sw_user.xfeatures; in __fpu_restore_sig() 414 fpregs->xsave.header.xfeatures |= XFEATURE_MASK_FPSSE; in __fpu_restore_sig() 433 fpregs->xsave.header.xfeatures &= mask; in __fpu_restore_sig()
|
D | xstate.h | 46 u64 xfeatures, u32 pkru_val, 180 u64 mask = fpstate->xfeatures; in os_xsave()
|
D | regset.c | 125 fpu->fpstate->regs.xsave.header.xfeatures |= XFEATURE_MASK_FPSSE; in xfpregs_set() 462 fpu->fpstate->regs.xsave.header.xfeatures |= XFEATURE_MASK_FP; in fpregs_set()
|
/linux-6.6.21/arch/x86/include/asm/trace/ |
D | fpu.h | 17 __field(u64, xfeatures) 25 __entry->xfeatures = fpu->fpstate->regs.xsave.header.xfeatures; 32 __entry->xfeatures,
|
/linux-6.6.21/tools/testing/selftests/x86/ |
D | corrupt_xstate_header.c | 49 uint64_t *xfeatures = (uint64_t *)(fpstate + 512); in sigusr1() local 53 *(xfeatures + 2) = 0xfffffff; in sigusr1()
|
/linux-6.6.21/arch/x86/include/asm/fpu/ |
D | api.h | 150 extern int fpu_enable_guest_xfd_features(struct fpu_guest *guest_fpu, u64 xfeatures); 161 unsigned int size, u64 xfeatures, u32 pkru);
|
D | types.h | 313 u64 xfeatures; member 364 u64 xfeatures; member 523 u64 xfeatures; member
|
/linux-6.6.21/arch/x86/include/asm/ |
D | user.h | 19 __u64 xfeatures; member
|
/linux-6.6.21/arch/x86/include/uapi/asm/ |
D | sigcontext.h | 60 __u64 xfeatures; member 175 __u64 xfeatures; member
|
/linux-6.6.21/arch/x86/kvm/ |
D | cpuid.c | 138 u64 xfeatures; in kvm_check_cpuid() local 161 xfeatures = best->eax | ((u64)best->edx << 32); in kvm_check_cpuid() 162 xfeatures &= XFEATURE_MASK_USER_DYNAMIC; in kvm_check_cpuid() 163 if (!xfeatures) in kvm_check_cpuid() 166 return fpu_enable_guest_xfd_features(&vcpu->arch.guest_fpu, xfeatures); in kvm_check_cpuid()
|