Home
last modified time | relevance | path

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

/linux-6.3-rc2/arch/x86/kernel/fpu/
A Dxstate.c368 os_xrstor_booting(&init_fpstate.regs.xsave); in setup_init_fpu_buf()
928 u64 xcomp_bv = xsave->header.xcomp_bv; in __raw_xsave_addr()
1063 struct xregs_state *xsave = &fpstate->regs.xsave; in __copy_xstate_to_uabi_buf() local
1099 sizeof(xsave->i387.st_space)); in __copy_xstate_to_uabi_buf()
1104 sizeof(xsave->i387.xmm_space)); in __copy_xstate_to_uabi_buf()
1155 __raw_xsave_addr(xsave, i), in __copy_xstate_to_uabi_buf()
1234 struct xregs_state *xsave = &fpstate->regs.xsave; in copy_uabi_to_xstate() local
1262 xsave->i387.mxcsr = mxcsr[0]; in copy_uabi_to_xstate()
1263 xsave->i387.mxcsr_mask = mxcsr[1]; in copy_uabi_to_xstate()
1271 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()
56 extern void *get_xsave_addr(struct xregs_state *xsave, int xfeature_nr);
187 XSTATE_XSAVE(&fpstate->regs.xsave, lmask, hmask, err); in os_xsave()
204 XSTATE_XRESTORE(&fpstate->regs.xsave, lmask, hmask); in os_xrstor()
214 XSTATE_XRESTORE(&fpstate->regs.xsave, lmask, hmask); in os_xrstor_supervisor()
309 struct xregs_state *xstate = &fpstate->regs.xsave; in os_xrstor_safe()
A Dcore.c97 if (fpu->fpstate->regs.xsave.header.xfeatures & AVX512_TRACKING_MASK) in update_avx_timestamp()
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()
478 return sizeof(init_fpstate.regs.xsave); in init_fpstate_copy_size()
510 xstate_init_xcomp_bv(&fpstate->regs.xsave, fpstate->xfeatures); in fpstate_init_user()
614 dst_fpu->fpstate->regs.xsave.header.xfeatures &= ~XFEATURE_MASK_PASID; in fpu_clone()
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.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()
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/tools/testing/selftests/mm/
A Dprotection_keys.c1562 void *xsave; in test_ptrace_modifies_pkru() local
1602 xsave = (void *)malloc(xsave_size); in test_ptrace_modifies_pkru()
1603 pkey_assert(xsave > 0); in test_ptrace_modifies_pkru()
1606 iov.iov_base = xsave; in test_ptrace_modifies_pkru()
1611 pkey_register = (u32 *)(xsave + pkey_offset); in test_ptrace_modifies_pkru()
1620 memset(xsave, 0xCC, xsave_size); in test_ptrace_modifies_pkru()
1635 memset(xsave, 0xCC, xsave_size); in test_ptrace_modifies_pkru()
1641 xstate_bv = (u64 *)(xsave + 512); in test_ptrace_modifies_pkru()
1648 memset(xsave, 0xCC, xsave_size); in test_ptrace_modifies_pkru()
1662 memset(xsave, 0xCC, xsave_size); in test_ptrace_modifies_pkru()
[all …]
/linux-6.3-rc2/tools/testing/selftests/kvm/include/x86_64/
A Dprocessor.h332 struct kvm_xsave *xsave; member
756 struct kvm_xsave *xsave) in vcpu_xsave_get() argument
758 vcpu_ioctl(vcpu, KVM_GET_XSAVE, xsave); in vcpu_xsave_get()
761 struct kvm_xsave *xsave) in vcpu_xsave2_get() argument
763 vcpu_ioctl(vcpu, KVM_GET_XSAVE2, xsave); in vcpu_xsave2_get()
766 struct kvm_xsave *xsave) in vcpu_xsave_set() argument
768 vcpu_ioctl(vcpu, KVM_SET_XSAVE, xsave); in vcpu_xsave_set()
/linux-6.3-rc2/arch/x86/events/intel/
A Dlbr.c413 xrstors(&task_ctx->xsave, XFEATURE_MASK_LBR); in intel_pmu_arch_lbr_xrstors()
498 xsaves(&task_ctx->xsave, XFEATURE_MASK_LBR); in intel_pmu_arch_lbr_xsaves()
913 struct x86_perf_task_context_arch_lbr_xsave *xsave = cpuc->lbr_xsave; in intel_pmu_arch_lbr_read_xsave() local
915 if (!xsave) { in intel_pmu_arch_lbr_read_xsave()
919 xsaves(&xsave->xsave, XFEATURE_MASK_LBR); in intel_pmu_arch_lbr_read_xsave()
921 intel_pmu_store_lbr(cpuc, xsave->lbr.entries); in intel_pmu_arch_lbr_read_xsave()
/linux-6.3-rc2/tools/testing/selftests/kvm/lib/x86_64/
A Dprocessor.c925 state->xsave = malloc(size); in vcpu_save_xsave_state()
926 vcpu_xsave2_get(vcpu, state->xsave); in vcpu_save_xsave_state()
928 state->xsave = malloc(sizeof(struct kvm_xsave)); in vcpu_save_xsave_state()
929 vcpu_xsave_get(vcpu, state->xsave); in vcpu_save_xsave_state()
997 vcpu_xsave_set(vcpu, state->xsave); in vcpu_load_state()
1009 free(state->xsave); in kvm_x86_state_cleanup()
/linux-6.3-rc2/include/video/
A Dnewport.h162 npireg_t xsave; /* copy of xstart integer value for BLOCk addressing MODE */ member
312 unsigned int xsave; member
/linux-6.3-rc2/lib/zstd/common/
A Dcpu.h122 C(xsave, 26)
/linux-6.3-rc2/tools/testing/selftests/x86/
A Damx.c50 static inline void xsave(struct xsave_buffer *xbuf, uint64_t rfbm) in xsave() function
601 xsave(xbuf2, XFEATURE_MASK_XTILEDATA); in __validate_tiledata_regs()
/linux-6.3-rc2/tools/testing/selftests/kvm/x86_64/
A Damx_test.c324 void *amx_start = (void *)state->xsave + amx_offset; in main()
/linux-6.3-rc2/arch/x86/kvm/
A Dx86.c5555 struct kvm_xsave *xsave; in kvm_arch_vcpu_ioctl() member
5762 if (!u.xsave) in kvm_arch_vcpu_ioctl()
5765 kvm_vcpu_ioctl_x86_get_xsave(vcpu, u.xsave); in kvm_arch_vcpu_ioctl()
5768 if (copy_to_user(argp, u.xsave, sizeof(struct kvm_xsave))) in kvm_arch_vcpu_ioctl()
5776 u.xsave = memdup_user(argp, size); in kvm_arch_vcpu_ioctl()
5777 if (IS_ERR(u.xsave)) { in kvm_arch_vcpu_ioctl()
5778 r = PTR_ERR(u.xsave); in kvm_arch_vcpu_ioctl()
5782 r = kvm_vcpu_ioctl_x86_set_xsave(vcpu, u.xsave); in kvm_arch_vcpu_ioctl()
5789 u.xsave = kzalloc(size, GFP_KERNEL_ACCOUNT); in kvm_arch_vcpu_ioctl()
5791 if (!u.xsave) in kvm_arch_vcpu_ioctl()
[all …]
/linux-6.3-rc2/arch/x86/events/
A Dperf_event.h977 struct xregs_state xsave; member
/linux-6.3-rc2/tools/arch/x86/kcpuid/
A Dcpuid.csv45 1, 0, ECX, 26, xsave, XSAVE/XRSTOR processor extended states (XSETBV/XGETBV/XCR0)
/linux-6.3-rc2/Documentation/admin-guide/
A Dkernel-parameters.txt3686 and restore using xsave. The kernel will fallback to
3691 xsave to save the states. By using this parameter,
3693 xsave doesn't support modified optimization while
3698 form of xsave area. The kernel will fall back to use
3700 in standard form of xsave area. By using this
3701 parameter, xsave area per process might occupy more
/linux-6.3-rc2/Documentation/virt/kvm/
A Dapi.rst1597 This ioctl would copy current vcpu's xsave struct to the userspace.
1617 This ioctl would copy userspace's xsave struct to the kernel. It copies
5930 This ioctl would copy current vcpu's xsave struct to the userspace. It

Completed in 78 milliseconds