/linux-6.6.21/arch/x86/kernel/fpu/ |
D | xstate.c | 366 xstate_init_xcomp_bv(&init_fpstate.regs.xsave, init_fpstate.xfeatures); in setup_init_fpu_buf() 371 os_xrstor_booting(&init_fpstate.regs.xsave); in setup_init_fpu_buf() 929 static void *__raw_xsave_addr(struct xregs_state *xsave, int xfeature_nr) in __raw_xsave_addr() argument 931 u64 xcomp_bv = xsave->header.xcomp_bv; in __raw_xsave_addr() 941 return (void *)xsave + xfeature_get_offset(xcomp_bv, xfeature_nr); in __raw_xsave_addr() 962 void *get_xsave_addr(struct xregs_state *xsave, int xfeature_nr) in get_xsave_addr() argument 988 if (!(xsave->header.xfeatures & BIT_ULL(xfeature_nr))) in get_xsave_addr() 991 return __raw_xsave_addr(xsave, xfeature_nr); in get_xsave_addr() 1067 struct xregs_state *xinit = &init_fpstate.regs.xsave; in __copy_xstate_to_uabi_buf() 1068 struct xregs_state *xsave = &fpstate->regs.xsave; in __copy_xstate_to_uabi_buf() local [all …]
|
D | xstate.h | 13 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() 57 extern void *get_xsave_addr(struct xregs_state *xsave, int xfeature_nr); 188 XSTATE_XSAVE(&fpstate->regs.xsave, lmask, hmask, err); in os_xsave() 205 XSTATE_XRESTORE(&fpstate->regs.xsave, lmask, hmask); in os_xrstor() 215 XSTATE_XRESTORE(&fpstate->regs.xsave, lmask, hmask); in os_xrstor_supervisor() 310 struct xregs_state *xstate = &fpstate->regs.xsave; in os_xrstor_safe()
|
D | core.c | 97 if (fpu->fpstate->regs.xsave.header.xfeatures & AVX512_TRACKING_MASK) in update_avx_timestamp() 385 ustate->xsave.header.xfeatures = XFEATURE_MASK_FPSSE; in fpu_copy_guest_fpstate_to_uabi() 397 if (ustate->xsave.header.xfeatures & ~XFEATURE_MASK_FPSSE) in fpu_copy_uabi_to_guest_fpstate() 405 if (ustate->xsave.header.xfeatures & ~xcr0) in fpu_copy_uabi_to_guest_fpstate() 413 if (!(ustate->xsave.header.xfeatures & XFEATURE_MASK_PKRU)) in fpu_copy_uabi_to_guest_fpstate() 479 return sizeof(init_fpstate.regs.xsave); in init_fpstate_copy_size() 511 xstate_init_xcomp_bv(&fpstate->regs.xsave, fpstate->xfeatures); in fpstate_init_user() 566 xstate = get_xsave_addr(&dst->thread.fpu.fpstate->regs.xsave, in update_fpu_shstk() 643 dst_fpu->fpstate->regs.xsave.header.xfeatures &= ~XFEATURE_MASK_PASID; in fpu_clone()
|
D | regset.c | 125 fpu->fpstate->regs.xsave.header.xfeatures |= XFEATURE_MASK_FPSSE; in xfpregs_set() 197 cetregs = get_xsave_addr(&fpu->fpstate->regs.xsave, XFEATURE_CET_USER); in ssp_get() 217 struct xregs_state *xsave = &fpu->fpstate->regs.xsave; in ssp_set() local 242 cetregs = get_xsave_addr(xsave, XFEATURE_CET_USER); in ssp_set() 462 fpu->fpstate->regs.xsave.header.xfeatures |= XFEATURE_MASK_FP; in fpregs_set()
|
D | signal.c | 72 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() 414 fpregs->xsave.header.xfeatures |= XFEATURE_MASK_FPSSE; in __fpu_restore_sig() 433 fpregs->xsave.header.xfeatures &= mask; in __fpu_restore_sig()
|
/linux-6.6.21/tools/testing/selftests/kvm/x86_64/ |
D | state_test.c | 305 xstate_bv = (void *)&((uint8_t *)state->xsave->region)[512]; in main() 309 vcpu_xsave_set(vcpuN, state->xsave); in main() 311 vcpu_xsave_set(vcpuN, state->xsave); in main() 314 vcpu_xsave_set(vcpuN, state->xsave); in main() 316 vcpu_xsave_set(vcpuN, state->xsave); in main()
|
D | amx_test.c | 295 void *amx_start = (void *)state->xsave + amx_offset; in main()
|
/linux-6.6.21/arch/x86/include/asm/fpu/ |
D | xstate.h | 111 void xsaves(struct xregs_state *xsave, u64 mask); 112 void xrstors(struct xregs_state *xsave, u64 mask);
|
D | types.h | 352 struct xregs_state xsave; member
|
/linux-6.6.21/arch/x86/include/asm/trace/ |
D | fpu.h | 25 __entry->xfeatures = fpu->fpstate->regs.xsave.header.xfeatures; 26 __entry->xcomp_bv = fpu->fpstate->regs.xsave.header.xcomp_bv;
|
/linux-6.6.21/tools/testing/selftests/mm/ |
D | protection_keys.c | 1553 void *xsave; in test_ptrace_modifies_pkru() local 1593 xsave = (void *)malloc(xsave_size); in test_ptrace_modifies_pkru() 1594 pkey_assert(xsave > 0); in test_ptrace_modifies_pkru() 1597 iov.iov_base = xsave; in test_ptrace_modifies_pkru() 1602 pkey_register = (u32 *)(xsave + pkey_offset); in test_ptrace_modifies_pkru() 1611 memset(xsave, 0xCC, xsave_size); in test_ptrace_modifies_pkru() 1626 memset(xsave, 0xCC, xsave_size); in test_ptrace_modifies_pkru() 1632 xstate_bv = (u64 *)(xsave + 512); in test_ptrace_modifies_pkru() 1639 memset(xsave, 0xCC, xsave_size); in test_ptrace_modifies_pkru() 1653 memset(xsave, 0xCC, xsave_size); in test_ptrace_modifies_pkru() [all …]
|
/linux-6.6.21/tools/testing/selftests/kvm/include/x86_64/ |
D | processor.h | 378 struct kvm_xsave *xsave; member 836 struct kvm_xsave *xsave) in vcpu_xsave_get() argument 838 vcpu_ioctl(vcpu, KVM_GET_XSAVE, xsave); in vcpu_xsave_get() 841 struct kvm_xsave *xsave) in vcpu_xsave2_get() argument 843 vcpu_ioctl(vcpu, KVM_GET_XSAVE2, xsave); in vcpu_xsave2_get() 846 struct kvm_xsave *xsave) in vcpu_xsave_set() argument 848 vcpu_ioctl(vcpu, KVM_SET_XSAVE, xsave); in vcpu_xsave_set()
|
/linux-6.6.21/arch/x86/events/intel/ |
D | lbr.c | 413 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.6.21/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 944 state->xsave = malloc(size); in vcpu_save_xsave_state() 945 vcpu_xsave2_get(vcpu, state->xsave); in vcpu_save_xsave_state() 947 state->xsave = malloc(sizeof(struct kvm_xsave)); in vcpu_save_xsave_state() 948 vcpu_xsave_get(vcpu, state->xsave); in vcpu_save_xsave_state() 1017 vcpu_xsave_set(vcpu, state->xsave); in vcpu_load_state() 1029 free(state->xsave); in kvm_x86_state_cleanup()
|
/linux-6.6.21/include/video/ |
D | newport.h | 162 npireg_t xsave; /* copy of xstart integer value for BLOCk addressing MODE */ member 312 unsigned int xsave; member
|
/linux-6.6.21/lib/zstd/common/ |
D | cpu.h | 122 C(xsave, 26)
|
/linux-6.6.21/tools/testing/selftests/x86/ |
D | amx.c | 52 static inline void xsave(struct xsave_buffer *xbuf, uint64_t rfbm) in xsave() function 610 xsave(xbuf2, XFEATURE_MASK_XTILEDATA); in __validate_tiledata_regs()
|
/linux-6.6.21/arch/x86/kvm/ |
D | x86.c | 5655 struct kvm_xsave *xsave; in kvm_arch_vcpu_ioctl() member 5860 u.xsave = kzalloc(sizeof(struct kvm_xsave), GFP_KERNEL_ACCOUNT); in kvm_arch_vcpu_ioctl() 5862 if (!u.xsave) in kvm_arch_vcpu_ioctl() 5865 kvm_vcpu_ioctl_x86_get_xsave(vcpu, u.xsave); in kvm_arch_vcpu_ioctl() 5868 if (copy_to_user(argp, u.xsave, sizeof(struct kvm_xsave))) in kvm_arch_vcpu_ioctl() 5876 u.xsave = memdup_user(argp, size); in kvm_arch_vcpu_ioctl() 5877 if (IS_ERR(u.xsave)) { in kvm_arch_vcpu_ioctl() 5878 r = PTR_ERR(u.xsave); in kvm_arch_vcpu_ioctl() 5882 r = kvm_vcpu_ioctl_x86_set_xsave(vcpu, u.xsave); in kvm_arch_vcpu_ioctl() 5889 u.xsave = kzalloc(size, GFP_KERNEL_ACCOUNT); in kvm_arch_vcpu_ioctl() [all …]
|
/linux-6.6.21/arch/x86/events/ |
D | perf_event.h | 977 struct xregs_state xsave; member
|
/linux-6.6.21/tools/arch/x86/kcpuid/ |
D | cpuid.csv | 45 1, 0, ECX, 26, xsave, XSAVE/XRSTOR processor extended states (XSETBV/XGETBV/XCR0)
|
/linux-6.6.21/Documentation/admin-guide/ |
D | kernel-parameters.txt | 3957 and restore using xsave. The kernel will fallback to 3962 xsave to save the states. By using this parameter, 3964 xsave doesn't support modified optimization while 3969 form of xsave area. The kernel will fall back to use 3971 in standard form of xsave area. By using this 3972 parameter, xsave area per process might occupy more
|
/linux-6.6.21/Documentation/virt/kvm/ |
D | api.rst | 1597 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 5933 This ioctl would copy current vcpu's xsave struct to the userspace. It
|