Searched refs:xsave (Results 1 – 9 of 9) sorted by relevance
/arch/x86/kernel/fpu/ |
D | signal.c | 59 struct xregs_state *xsave = &tsk->thread.fpu.state.xsave; in save_fsave_header() local 66 __put_user(xsave->i387.swd, &fp->status) || in save_fsave_header() 158 struct xregs_state *xsave = ¤t->thread.fpu.state.xsave; in copy_fpstate_to_sigframe() local 193 if (__copy_to_user(buf_fx, xsave, fpu_user_xstate_size)) in copy_fpstate_to_sigframe() 212 struct xregs_state *xsave = &tsk->thread.fpu.state.xsave; in sanitize_restored_xstate() local 213 struct xstate_header *header = &xsave->header; in sanitize_restored_xstate() 234 xsave->i387.mxcsr &= mxcsr_feature_mask; in sanitize_restored_xstate() 248 copy_kernel_to_xregs(&init_fpstate.xsave, init_bv); in copy_user_to_fpregs_zeroing() 253 copy_kernel_to_xregs(&init_fpstate.xsave, init_bv); in copy_user_to_fpregs_zeroing() 328 &fpu->state.xsave); in __fpu__restore_sig() [all …]
|
D | regset.c | 73 fpu->state.xsave.header.xfeatures |= XFEATURE_MASK_FPSSE; in xfpregs_set() 83 struct xregs_state *xsave; in xstateregs_get() local 89 xsave = &fpu->state.xsave; in xstateregs_get() 94 ret = copyout_from_xsaves(pos, count, kbuf, ubuf, xsave); in xstateregs_get() 102 memcpy(&xsave->i387.sw_reserved, xstate_fx_sw_bytes, sizeof(xstate_fx_sw_bytes)); in xstateregs_get() 107 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, xsave, 0, -1); in xstateregs_get() 117 struct xregs_state *xsave; in xstateregs_set() local 129 xsave = &fpu->state.xsave; in xstateregs_set() 134 ret = copyin_to_xsaves(kbuf, ubuf, xsave); in xstateregs_set() 136 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, xsave, 0, -1); in xstateregs_set() [all …]
|
D | xstate.c | 164 xfeatures = fpu->state.xsave.header.xfeatures; in fpstate_sanitize_xstate() 210 (void *)&init_fpstate.xsave + offset, in fpstate_sanitize_xstate() 427 init_fpstate.xsave.header.xcomp_bv = (u64)1 << 63 | xfeatures_mask; in setup_init_fpu_buf() 432 copy_kernel_to_xregs_booting(&init_fpstate.xsave); in setup_init_fpu_buf() 438 copy_xregs_to_kernel_booting(&init_fpstate.xsave); in setup_init_fpu_buf() 778 void *__raw_xsave_addr(struct xregs_state *xsave, int xstate_feature_mask) in __raw_xsave_addr() argument 787 return (void *)xsave + xstate_comp_offsets[feature_nr]; in __raw_xsave_addr() 807 void *get_xsave_addr(struct xregs_state *xsave, int xstate_feature) in get_xsave_addr() argument 833 if (!(xsave->header.xfeatures & xstate_feature)) in get_xsave_addr() 836 return __raw_xsave_addr(xsave, xstate_feature); in get_xsave_addr() [all …]
|
D | core.c | 239 state->xsave.header.xcomp_bv = XCOMP_BV_COMPACTED_FORMAT | in fpstate_init() 265 memset(&dst_fpu->state.xsave, 0, fpu_kernel_xstate_size); in fpu__copy() 505 copy_kernel_to_xregs(&init_fpstate.xsave, -1); in copy_init_fpstate_to_fpregs()
|
/arch/x86/include/asm/fpu/ |
D | xstate.h | 53 void *get_xsave_addr(struct xregs_state *xsave, int xstate); 57 void __user *ubuf, struct xregs_state *xsave); 59 struct xregs_state *xsave);
|
D | types.h | 268 struct xregs_state xsave; member
|
D | internal.h | 430 copy_xregs_to_kernel(&fpu->state.xsave); in copy_fpregs_to_fpstate() 451 copy_kernel_to_xregs(&fpstate->xsave, -1); in __copy_kernel_to_fpregs()
|
/arch/x86/include/asm/trace/ |
D | fpu.h | 28 __entry->xfeatures = fpu->state.xsave.header.xfeatures; 29 __entry->xcomp_bv = fpu->state.xsave.header.xcomp_bv;
|
/arch/x86/kvm/ |
D | x86.c | 3169 struct xregs_state *xsave = &vcpu->arch.guest_fpu.state.xsave; in fill_xsave() local 3170 u64 xstate_bv = xsave->header.xfeatures; in fill_xsave() 3177 memcpy(dest, xsave, XSAVE_HDR_OFFSET); in fill_xsave() 3191 void *src = get_xsave_addr(xsave, feature); in fill_xsave() 3206 struct xregs_state *xsave = &vcpu->arch.guest_fpu.state.xsave; in load_xsave() local 3214 memcpy(xsave, src, XSAVE_HDR_OFFSET); in load_xsave() 3217 xsave->header.xfeatures = xstate_bv; in load_xsave() 3219 xsave->header.xcomp_bv = host_xcr0 | XSTATE_COMPACTION_ENABLED; in load_xsave() 3229 void *dest = get_xsave_addr(xsave, feature); in load_xsave() 3362 struct kvm_xsave *xsave; in kvm_arch_vcpu_ioctl() member [all …]
|