Home
last modified time | relevance | path

Searched refs:xfeatures (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/arch/x86/kernel/fpu/
Dxstate.c363 xstate_init_xcomp_bv(&init_fpstate.regs.xsave, init_fpstate.xfeatures); in setup_init_fpu_buf()
403 if (hdr->xfeatures & ~fpstate->user_xfeatures) in validate_user_xstate_header()
563 static unsigned int xstate_calculate_size(u64 xfeatures, bool compacted) in xstate_calculate_size() argument
565 unsigned int topmost = fls64(xfeatures) - 1; in xstate_calculate_size()
572 offset = xfeature_get_offset(xfeatures, topmost); in xstate_calculate_size()
751 u64 xfeatures; in fpu__init_system_xstate() local
825 xfeatures = fpu_kernel_cfg.max_features; in fpu__init_system_xstate()
865 init_fpstate.xfeatures = fpu_kernel_cfg.default_features; in fpu__init_system_xstate()
879 if (xfeatures != fpu_kernel_cfg.max_features) { in fpu__init_system_xstate()
881 xfeatures, fpu_kernel_cfg.max_features); in fpu__init_system_xstate()
[all …]
Dsignal.c62 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()
353 user_xfeatures = fx_sw_user.xfeatures; in __fpu_restore_sig()
417 fpregs->xsave.header.xfeatures |= XFEATURE_MASK_FPSSE; in __fpu_restore_sig()
436 fpregs->xsave.header.xfeatures &= mask; in __fpu_restore_sig()
Dcore.c97 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()
384 ustate->xsave.header.xfeatures = XFEATURE_MASK_FPSSE; in fpu_copy_guest_fpstate_to_uabi()
396 if (ustate->xsave.header.xfeatures & ~XFEATURE_MASK_FPSSE) in fpu_copy_uabi_to_guest_fpstate()
404 if (ustate->xsave.header.xfeatures & ~xcr0) in fpu_copy_uabi_to_guest_fpstate()
412 if (!(ustate->xsave.header.xfeatures & XFEATURE_MASK_PKRU)) in fpu_copy_uabi_to_guest_fpstate()
[all …]
Dregset.c124 fpu->fpstate->regs.xsave.header.xfeatures |= XFEATURE_MASK_FPSSE; in xfpregs_set()
381 fpu->fpstate->regs.xsave.header.xfeatures |= XFEATURE_MASK_FP; in fpregs_set()
Dxstate.h179 u64 mask = fpstate->xfeatures; in os_xsave()
/linux-6.1.9/arch/x86/include/asm/trace/
Dfpu.h17 __field(u64, xfeatures)
25 __entry->xfeatures = fpu->fpstate->regs.xsave.header.xfeatures;
32 __entry->xfeatures,
/linux-6.1.9/tools/testing/selftests/x86/
Dcorrupt_xstate_header.c49 uint64_t *xfeatures = (uint64_t *)(fpstate + 512); in sigusr1() local
53 *(xfeatures + 2) = 0xfffffff; in sigusr1()
/linux-6.1.9/arch/x86/include/asm/fpu/
Dtypes.h301 u64 xfeatures; member
352 u64 xfeatures; member
511 u64 xfeatures; member
Dapi.h141 extern int fpu_enable_guest_xfd_features(struct fpu_guest *guest_fpu, u64 xfeatures);
/linux-6.1.9/arch/x86/include/asm/
Duser.h19 __u64 xfeatures; member
/linux-6.1.9/arch/x86/include/uapi/asm/
Dsigcontext.h60 __u64 xfeatures; member
175 __u64 xfeatures; member
/linux-6.1.9/arch/x86/kvm/
Dcpuid.c123 u64 xfeatures; in kvm_check_cpuid() local
146 xfeatures = best->eax | ((u64)best->edx << 32); in kvm_check_cpuid()
147 xfeatures &= XFEATURE_MASK_USER_DYNAMIC; in kvm_check_cpuid()
148 if (!xfeatures) in kvm_check_cpuid()
151 return fpu_enable_guest_xfd_features(&vcpu->arch.guest_fpu, xfeatures); in kvm_check_cpuid()