Home
last modified time | relevance | path

Searched refs:xsave (Results 1 – 18 of 18) sorted by relevance

/linux/arch/x86/kernel/fpu/
A Dxstate.c430 os_xrstor_booting(&init_fpstate.regs.xsave); in setup_init_fpu_buf()
1137 struct xregs_state *xsave = &fpstate->regs.xsave; in __copy_xstate_to_uabi_buf() local
1144 header.xfeatures = xsave->header.xfeatures; in __copy_xstate_to_uabi_buf()
1173 sizeof(xsave->i387.st_space)); in __copy_xstate_to_uabi_buf()
1178 sizeof(xsave->i387.xmm_space)); in __copy_xstate_to_uabi_buf()
1220 __raw_xsave_addr(xsave, i), in __copy_xstate_to_uabi_buf()
1271 struct xregs_state *xsave = &fpstate->regs.xsave; in copy_uabi_to_xstate() local
1299 xsave->i387.mxcsr = mxcsr[0]; in copy_uabi_to_xstate()
1300 xsave->i387.mxcsr_mask = mxcsr[1]; in copy_uabi_to_xstate()
1308 void *dst = __raw_xsave_addr(xsave, i); in copy_uabi_to_xstate()
[all …]
A Dxstate.h13 static inline void xstate_init_xcomp_bv(struct xregs_state *xsave, u64 mask) in xstate_init_xcomp_bv() argument
20 xsave->header.xcomp_bv = mask | XCOMP_BV_COMPACTED_FORMAT; in xstate_init_xcomp_bv()
47 extern void *get_xsave_addr(struct xregs_state *xsave, int xfeature_nr);
172 XSTATE_XSAVE(&fpstate->regs.xsave, lmask, hmask, err); in os_xsave()
189 XSTATE_XRESTORE(&fpstate->regs.xsave, lmask, hmask); in os_xrstor()
199 XSTATE_XRESTORE(&fpstate->regs.xsave, lmask, hmask); in os_xrstor_supervisor()
294 struct xregs_state *xstate = &fpstate->regs.xsave; in os_xrstor_safe()
A Dcore.c124 if (fpu->fpstate->regs.xsave.header.xfeatures & XFEATURE_MASK_AVX512) in save_fpregs_to_fpstate()
293 ustate->xsave.header.xfeatures = XFEATURE_MASK_FPSSE; in fpu_copy_guest_fpstate_to_uabi()
307 if (ustate->xsave.header.xfeatures & ~XFEATURE_MASK_FPSSE) in fpu_copy_uabi_to_guest_fpstate()
315 if (ustate->xsave.header.xfeatures & ~xcr0) in fpu_copy_uabi_to_guest_fpstate()
323 if (kstate->regs.xsave.header.xfeatures & XFEATURE_MASK_PKRU) { in fpu_copy_uabi_to_guest_fpstate()
324 xpkru = get_xsave_addr(&kstate->regs.xsave, XFEATURE_PKRU); in fpu_copy_uabi_to_guest_fpstate()
329 xstate_init_xcomp_bv(&kstate->regs.xsave, kstate->xfeatures); in fpu_copy_uabi_to_guest_fpstate()
393 return sizeof(init_fpstate.regs.xsave); in init_fpstate_copy_size()
425 xstate_init_xcomp_bv(&fpstate->regs.xsave, fpstate->xfeatures); in fpstate_init_user()
A Dsignal.c72 struct xregs_state *xsave = &tsk->thread.fpu.fpstate->regs.xsave; in save_fsave_header() local
84 __put_user(xsave->i387.swd, &fp->status) || in save_fsave_header()
417 fpregs->xsave.header.xfeatures |= XFEATURE_MASK_FPSSE; in __fpu_restore_sig()
436 fpregs->xsave.header.xfeatures &= mask; in __fpu_restore_sig()
A Dregset.c125 fpu->fpstate->regs.xsave.header.xfeatures |= XFEATURE_MASK_FPSSE; in xfpregs_set()
382 fpu->fpstate->regs.xsave.header.xfeatures |= XFEATURE_MASK_FP; in fpregs_set()
/linux/arch/x86/include/asm/fpu/
A Dxstate.h109 void xsaves(struct xregs_state *xsave, u64 mask);
110 void xrstors(struct xregs_state *xsave, u64 mask);
A Dtypes.h340 struct xregs_state xsave; member
/linux/arch/x86/include/asm/trace/
A Dfpu.h25 __entry->xfeatures = fpu->fpstate->regs.xsave.header.xfeatures;
26 __entry->xcomp_bv = fpu->fpstate->regs.xsave.header.xcomp_bv;
/linux/arch/x86/events/intel/
A Dlbr.c482 xrstors(&task_ctx->xsave, XFEATURE_MASK_LBR); in intel_pmu_arch_lbr_xrstors()
567 xsaves(&task_ctx->xsave, XFEATURE_MASK_LBR); in intel_pmu_arch_lbr_xsaves()
982 struct x86_perf_task_context_arch_lbr_xsave *xsave = cpuc->lbr_xsave; in intel_pmu_arch_lbr_read_xsave() local
984 if (!xsave) { in intel_pmu_arch_lbr_read_xsave()
988 xsaves(&xsave->xsave, XFEATURE_MASK_LBR); in intel_pmu_arch_lbr_read_xsave()
990 intel_pmu_store_lbr(cpuc, xsave->lbr.entries); in intel_pmu_arch_lbr_read_xsave()
/linux/include/video/
A Dnewport.h162 npireg_t xsave; /* copy of xstart integer value for BLOCk addressing MODE */ member
312 unsigned int xsave; member
/linux/tools/testing/selftests/x86/
A Damx.c55 static inline void xsave(struct xsave_buffer *xbuf, uint64_t rfbm) in xsave() function
599 xsave(xbuf2, XFEATURE_MASK_XTILEDATA); in __validate_tiledata_regs()
/linux/lib/zstd/common/
A Dcpu.h122 C(xsave, 26)
/linux/tools/testing/selftests/kvm/lib/x86_64/
A Dprocessor.c1024 struct kvm_xsave xsave; member
1115 r = ioctl(vcpu->fd, KVM_GET_XSAVE, &state->xsave); in vcpu_save_state()
1160 r = ioctl(vcpu->fd, KVM_SET_XSAVE, &state->xsave); in vcpu_load_state()
/linux/arch/x86/kvm/
A Dx86.c5089 struct kvm_xsave *xsave; in kvm_arch_vcpu_ioctl() member
5309 u.xsave = kzalloc(sizeof(struct kvm_xsave), GFP_KERNEL_ACCOUNT); in kvm_arch_vcpu_ioctl()
5311 if (!u.xsave) in kvm_arch_vcpu_ioctl()
5314 kvm_vcpu_ioctl_x86_get_xsave(vcpu, u.xsave); in kvm_arch_vcpu_ioctl()
5317 if (copy_to_user(argp, u.xsave, sizeof(struct kvm_xsave))) in kvm_arch_vcpu_ioctl()
5323 u.xsave = memdup_user(argp, sizeof(*u.xsave)); in kvm_arch_vcpu_ioctl()
5324 if (IS_ERR(u.xsave)) { in kvm_arch_vcpu_ioctl()
5325 r = PTR_ERR(u.xsave); in kvm_arch_vcpu_ioctl()
5329 r = kvm_vcpu_ioctl_x86_set_xsave(vcpu, u.xsave); in kvm_arch_vcpu_ioctl()
/linux/arch/x86/events/
A Dperf_event.h950 struct xregs_state xsave; member
/linux/tools/arch/x86/kcpuid/
A Dcpuid.csv45 1, 0, ECX, 26, xsave, XSAVE/XRSTOR processor extended states (XSETBV/XGETBV/XCR0)
/linux/Documentation/admin-guide/
A Dkernel-parameters.txt3431 and restore using xsave. The kernel will fallback to
3436 xsave to save the states. By using this parameter,
3438 xsave doesn't support modified optimization while
3443 form of xsave area. The kernel will fall back to use
3445 in standard form of xsave area. By using this
3446 parameter, xsave area per process might occupy more
/linux/Documentation/virt/kvm/
A Dapi.rst1571 This ioctl would copy current vcpu's xsave struct to the userspace.
1590 This ioctl would copy userspace's xsave struct to the kernel.

Completed in 72 milliseconds