Home
last modified time | relevance | path

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

/Linux-v5.10/arch/x86/kernel/fpu/
Dregset.c40 return membuf_write(&to, &fpu->state.fxsave, sizeof(struct fxregs_state)); in xfpregs_get()
57 &fpu->state.fxsave, 0, -1); in xfpregs_set()
62 fpu->state.fxsave.mxcsr &= mxcsr_feature_mask; in xfpregs_set()
179 static inline u32 twd_fxsr_to_i387(struct fxregs_state *fxsave) in twd_fxsr_to_i387() argument
182 u32 tos = (fxsave->swd >> 11) & 7; in twd_fxsr_to_i387()
183 u32 twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387()
190 st = FPREG_ADDR(fxsave, (i - tos) & 7); in twd_fxsr_to_i387()
227 struct fxregs_state *fxsave = &tsk->thread.fpu.state.fxsave; in convert_from_fxsr() local
229 struct _fpxreg *from = (struct _fpxreg *) &fxsave->st_space[0]; in convert_from_fxsr()
232 env->cwd = fxsave->cwd | 0xffff0000u; in convert_from_fxsr()
[all …]
Dcore.c206 fpstate_init_fxstate(&state->fxsave); in fpstate_init()
347 copy_kernel_to_fxregs(&init_fpstate.fxsave); in copy_init_fpstate_to_fpregs()
458 cwd = fpu->state.fxsave.cwd; in fpu__exception_code()
459 swd = fpu->state.fxsave.swd; in fpu__exception_code()
476 mxcsr = fpu->state.fxsave.mxcsr; in fpu__exception_code()
Dsignal.c256 convert_to_fxsr(&state->fxsave, ia32_env); in sanitize_restored_user_xstate()
434 ret = __copy_from_user(&fpu->state.fxsave, buf_fx, state_size); in __fpu__restore_sig()
451 ret = copy_kernel_to_fxregs_err(&fpu->state.fxsave); in __fpu__restore_sig()
Dxstate.c144 struct fxregs_state *fx = &fpu->state.fxsave; in fpstate_sanitize_xstate()
/Linux-v5.10/arch/x86/um/
Dsignal.c37 static inline unsigned long twd_fxsr_to_i387(struct user_fxsr_struct *fxsave) in twd_fxsr_to_i387() argument
40 unsigned long twd = (unsigned long) fxsave->twd; in twd_fxsr_to_i387()
49 st = (struct _fpxreg *) FPREG_ADDR(fxsave, i); in twd_fxsr_to_i387()
83 struct user_fxsr_struct *fxsave) in convert_fxsr_to_user() argument
90 env[0] = (unsigned long)fxsave->cwd | 0xffff0000ul; in convert_fxsr_to_user()
91 env[1] = (unsigned long)fxsave->swd | 0xffff0000ul; in convert_fxsr_to_user()
92 env[2] = twd_fxsr_to_i387(fxsave); in convert_fxsr_to_user()
93 env[3] = fxsave->fip; in convert_fxsr_to_user()
94 env[4] = fxsave->fcs | ((unsigned long)fxsave->fop << 16); in convert_fxsr_to_user()
95 env[5] = fxsave->foo; in convert_fxsr_to_user()
[all …]
/Linux-v5.10/arch/x86/include/asm/fpu/
Dinternal.h154 return user_insn(fxsave %[fx], [fx] "=m" (*fx), "m" (*fx)); in copy_fxregs_to_user()
202 asm volatile( "fxsave %[fx]" : [fx] "=m" (fpu->state.fxsave)); in copy_fxregs_to_kernel()
204 asm volatile("fxsaveq %[fx]" : [fx] "=m" (fpu->state.fxsave)); in copy_fxregs_to_kernel()
422 copy_kernel_to_fxregs(&fpstate->fxsave); in __copy_kernel_to_fpregs()
Dsignal.h25 extern void convert_to_fxsr(struct fxregs_state *fxsave,
Dtypes.h306 struct fxregs_state fxsave; member
/Linux-v5.10/arch/x86/kvm/
Dx86.c4489 &vcpu->arch.guest_fpu->state.fxsave, in kvm_vcpu_ioctl_x86_get_xsave()
4518 memcpy(&vcpu->arch.guest_fpu->state.fxsave, in kvm_vcpu_ioctl_x86_set_xsave()
9743 struct fxregs_state *fxsave; in kvm_arch_vcpu_ioctl_get_fpu() local
9747 fxsave = &vcpu->arch.guest_fpu->state.fxsave; in kvm_arch_vcpu_ioctl_get_fpu()
9748 memcpy(fpu->fpr, fxsave->st_space, 128); in kvm_arch_vcpu_ioctl_get_fpu()
9749 fpu->fcw = fxsave->cwd; in kvm_arch_vcpu_ioctl_get_fpu()
9750 fpu->fsw = fxsave->swd; in kvm_arch_vcpu_ioctl_get_fpu()
9751 fpu->ftwx = fxsave->twd; in kvm_arch_vcpu_ioctl_get_fpu()
9752 fpu->last_opcode = fxsave->fop; in kvm_arch_vcpu_ioctl_get_fpu()
9753 fpu->last_ip = fxsave->rip; in kvm_arch_vcpu_ioctl_get_fpu()
[all …]
/Linux-v5.10/arch/x86/lib/
Dx86-opcode-map.txt1039 0: fxsave | RDFSBASE Ry (F3),(11B)
/Linux-v5.10/tools/arch/x86/lib/
Dx86-opcode-map.txt1039 0: fxsave | RDFSBASE Ry (F3),(11B)
/Linux-v5.10/Documentation/virt/kvm/
Dapi.rst739 __u8 ftwx; /* in fxsave format */
768 __u8 ftwx; /* in fxsave format */