/linux-master/tools/testing/selftests/kvm/x86_64/ |
H A D | xcr0_cpuid_test.c | 22 #define ASSERT_XFEATURE_DEPENDENCIES(supported_xcr0, xfeatures, dependencies) \ 24 uint64_t __supported = (supported_xcr0) & ((xfeatures) | (dependencies)); \ 26 __GUEST_ASSERT((__supported & (xfeatures)) != (xfeatures) || \ 27 __supported == ((xfeatures) | (dependencies)), \ 28 "supported = 0x%lx, xfeatures = 0x%llx, dependencies = 0x%llx", \ 29 __supported, (xfeatures), (dependencies)); \ 40 #define ASSERT_ALL_OR_NONE_XFEATURE(supported_xcr0, xfeatures) \ 42 uint64_t __supported = (supported_xcr0) & (xfeatures); \ 44 __GUEST_ASSERT(!__supported || __supported == (xfeatures), \ [all...] |
/linux-master/arch/x86/include/asm/ |
H A D | user.h | 19 __u64 xfeatures; member in struct:user_xstate_header 45 * ptrace interface, they must ensure that the header.xfeatures 48 * header.xfeatures's bit 0 must be set to '1', when SSE is modified to 49 * non-init state, header.xfeatures's bit 1 must to be set to '1', etc.
|
/linux-master/arch/x86/include/asm/trace/ |
H A D | fpu.h | 17 __field(u64, xfeatures) 25 __entry->xfeatures = fpu->fpstate->regs.xsave.header.xfeatures; 29 TP_printk("x86/fpu: %p load: %d xfeatures: %llx xcomp_bv: %llx", 32 __entry->xfeatures,
|
/linux-master/arch/x86/kernel/fpu/ |
H A D | xstate.c | 367 xstate_init_xcomp_bv(&init_fpstate.regs.xsave, init_fpstate.xfeatures); 370 * Init all the features state with header.xfeatures being 0x0 407 if (hdr->xfeatures & ~fpstate->user_xfeatures) 560 static unsigned int xstate_calculate_size(u64 xfeatures, bool compacted) argument 562 unsigned int topmost = fls64(xfeatures) - 1; 569 offset = xfeature_get_offset(xfeatures, topmost); 748 u64 xfeatures; local 822 xfeatures = fpu_kernel_cfg.max_features; 862 init_fpstate.xfeatures = fpu_kernel_cfg.default_features; 874 * xfeatures mas 1063 __copy_xstate_to_uabi_buf(struct membuf to, struct fpstate *fpstate, u64 xfeatures, u32 pkru_val, enum xstate_copy_mode copy_mode) argument 1499 fpstate_realloc(u64 xfeatures, unsigned int ksize, unsigned int usize, struct fpu_guest *guest_fpu) argument [all...] |
H A D | signal.c | 62 fx_sw->xfeatures = XFEATURE_MASK_FPSSE; 110 sw_bytes->xfeatures = fpstate->user_xfeatures; 122 u32 xfeatures; local 136 * Read the xfeatures which we copied (directly from the cpu or 139 err |= __get_user(xfeatures, (__u32 __user *)&x->header.xfeatures); 146 * xfeatures in the xsave header. 148 * xsave aware apps can change the xfeatures in the xsave 152 xfeatures |= XFEATURE_MASK_FPSSE; 154 err |= __put_user(xfeatures, (__u3 [all...] |
H A D | core.c | 97 if (fpu->fpstate->regs.xsave.header.xfeatures & AVX512_TRACKING_MASK) 166 * in fpstate::regs::xsave::xfeatures. 175 * So fpstate->xfeatures cannot be used here, because then 235 gfpu->xfeatures = fpu_user_cfg.default_features; 273 * fpu_enable_guest_xfd_features - Check xfeatures against guest perm and enable 275 * @xfeatures: Features requested by guest CPUID 277 * Enable all dynamic xfeatures according to guest perm and requested CPUID. 281 int fpu_enable_guest_xfd_features(struct fpu_guest *guest_fpu, u64 xfeatures) argument 286 xfeatures &= ~guest_fpu->xfeatures; 371 fpu_copy_guest_fpstate_to_uabi(struct fpu_guest *gfpu, void *buf, unsigned int size, u64 xfeatures, u32 pkru) argument [all...] |
H A D | xstate.h | 46 u64 xfeatures, u32 pkru_val, 186 u64 mask = fpstate->xfeatures; 225 * XSAVE itself always writes all requested xfeatures. Removing features 276 /* Optimize away writing unnecessary xfeatures: */
|
H A D | regset.c | 125 fpu->fpstate->regs.xsave.header.xfeatures |= XFEATURE_MASK_FPSSE; 462 fpu->fpstate->regs.xsave.header.xfeatures |= XFEATURE_MASK_FP;
|
/linux-master/tools/testing/selftests/x86/ |
H A D | corrupt_xstate_header.c | 49 uint64_t *xfeatures = (uint64_t *)(fpstate + 512); local 53 *(xfeatures + 2) = 0xfffffff;
|
/linux-master/arch/x86/include/asm/fpu/ |
H A D | api.h | 106 * Query the presence of one or more xfeatures. Works on any legacy CPU as well. 150 extern int fpu_enable_guest_xfd_features(struct fpu_guest *guest_fpu, u64 xfeatures); 161 unsigned int size, u64 xfeatures, u32 pkru);
|
H A D | types.h | 315 u64 xfeatures; member in struct:xstate_header 365 /* @xfeatures: xfeatures for which the storage is sized */ 366 u64 xfeatures; member in struct:fpstate 368 /* @user_xfeatures: xfeatures valid in UABI buffers */ 371 /* @xfd: xfeatures disabled to trap userspace use. */ 420 * is allowed to expand its xfeatures set which requires to 522 * @xfeatures: xfeature bitmap of features which are 525 u64 xfeatures; member in struct:fpu_guest
|
/linux-master/arch/x86/include/uapi/asm/ |
H A D | sigcontext.h | 60 __u64 xfeatures; member in struct:_fpx_sw_bytes 63 * Actual XSAVE state size, based on the xfeatures saved in the layout. 175 __u64 xfeatures; member in struct:_header
|
/linux-master/arch/x86/kvm/ |
H A D | cpuid.c | 138 u64 xfeatures; local 154 * Exposing dynamic xfeatures to the guest requires additional 161 xfeatures = best->eax | ((u64)best->edx << 32); 162 xfeatures &= XFEATURE_MASK_USER_DYNAMIC; 163 if (!xfeatures) 166 return fpu_enable_guest_xfd_features(&vcpu->arch.guest_fpu, xfeatures);
|