/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | xcr0_cpuid_test.c | 22 #define ASSERT_XFEATURE_DEPENDENCIES(supported_xcr0, xfeatures, dependencies) \ argument 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) \ argument 42 uint64_t __supported = (supported_xcr0) & (xfeatures); \ 44 __GUEST_ASSERT(!__supported || __supported == (xfeatures), \ [all...] |
/linux/arch/x86/kernel/fpu/ |
H A D | xstate.c | 370 xstate_init_xcomp_bv(&init_fpstate.regs.xsave, init_fpstate.xfeatures); in setup_init_fpu_buf() 410 if (hdr->xfeatures & ~fpstate->user_xfeatures) in validate_user_xstate_header() 563 static unsigned int xstate_calculate_size(u64 xfeatures, bool compacted) in xstate_calculate_size() argument 565 unsigned int topmost = fls64(xfeatures) - 1; in xstate_calculate_size() 572 offset = xfeature_get_offset(xfeatures, topmost); in xstate_calculate_size() 751 u64 xfeatures; in fpu__init_system_xstate() local 828 xfeatures = fpu_kernel_cfg.max_features; in fpu__init_system_xstate() 868 init_fpstate.xfeatures = fpu_kernel_cfg.default_features; in fpu__init_system_xstate() 882 if (xfeatures != fpu_kernel_cfg.max_features) { in fpu__init_system_xstate() 884 xfeatures, fpu_kernel_cfg.max_features); in fpu__init_system_xstate() [all …]
|
H A D | core.c | 97 if (fpu->fpstate->regs.xsave.header.xfeatures & AVX512_TRACKING_MASK) in update_avx_timestamp() 235 gfpu->xfeatures = fpu_user_cfg.default_features; in fpu_alloc_guest_fpstate() 281 int fpu_enable_guest_xfd_features(struct fpu_guest *guest_fpu, u64 xfeatures) in fpu_enable_guest_xfd_features() argument 286 xfeatures &= ~guest_fpu->xfeatures; in fpu_enable_guest_xfd_features() 287 if (!xfeatures) in fpu_enable_guest_xfd_features() 290 return __xfd_enable_feature(xfeatures, guest_fpu); in fpu_enable_guest_xfd_features() 372 unsigned int size, u64 xfeatures, u32 pkru) in fpu_copy_guest_fpstate_to_uabi() argument 379 __copy_xstate_to_uabi_buf(mb, kstate, xfeatures, pkru, in fpu_copy_guest_fpstate_to_uabi() 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() [all …]
|
H A D | signal.c | 62 fx_sw->xfeatures = XFEATURE_MASK_FPSSE; in check_xstate_in_sigframe() 110 sw_bytes->xfeatures = fpstate->user_xfeatures; in save_sw_bytes() 122 u32 xfeatures; in save_xstate_epilog() local 139 err |= __get_user(xfeatures, (__u32 __user *)&x->header.xfeatures); in save_xstate_epilog() 152 xfeatures |= XFEATURE_MASK_FPSSE; in save_xstate_epilog() 154 err |= __put_user(xfeatures, (__u32 __user *)&x->header.xfeatures); in save_xstate_epilog() 353 user_xfeatures = fx_sw_user.xfeatures; in __fpu_restore_sig() 415 fpregs->xsave.header.xfeatures |= XFEATURE_MASK_FPSSE; in __fpu_restore_sig() 434 fpregs->xsave.header.xfeatures &= mask; in __fpu_restore_sig()
|
H A D | xstate.h | 46 u64 xfeatures, u32 pkru_val, 86 err = __put_user(xstate_bv, &buf->header.xfeatures); in update_pkru_in_sigframe() 204 u64 mask = fpstate->xfeatures; in os_xsave()
|
H A D | regset.c | 125 fpu->fpstate->regs.xsave.header.xfeatures |= XFEATURE_MASK_FPSSE; in xfpregs_set() 462 fpu->fpstate->regs.xsave.header.xfeatures |= XFEATURE_MASK_FP; in fpregs_set()
|
/linux/arch/x86/include/asm/trace/ |
H A D | fpu.h | 17 __field(u64, xfeatures) 25 __entry->xfeatures = fpu->fpstate->regs.xsave.header.xfeatures; 32 __entry->xfeatures,
|
/linux/tools/testing/selftests/x86/ |
H A D | corrupt_xstate_header.c | 49 uint64_t *xfeatures = (uint64_t *)(fpstate + 512); in sigusr1() local 53 *(xfeatures + 2) = 0xfffffff; in sigusr1()
|
/linux/arch/x86/include/asm/fpu/ |
H A D | api.h | 153 extern int fpu_enable_guest_xfd_features(struct fpu_guest *guest_fpu, u64 xfeatures); 164 unsigned int size, u64 xfeatures, u32 pkru);
|
H A D | types.h | 315 u64 xfeatures; member 366 u64 xfeatures; member 525 u64 xfeatures; member
|
/linux/arch/x86/include/asm/ |
H A D | user.h | 19 __u64 xfeatures; member
|
/linux/arch/x86/include/uapi/asm/ |
H A D | sigcontext.h | 60 __u64 xfeatures; member 175 __u64 xfeatures; member
|
/linux/arch/x86/kvm/ |
H A D | cpuid.c | 159 u64 xfeatures; in kvm_check_cpuid() local 182 xfeatures = best->eax | ((u64)best->edx << 32); in kvm_check_cpuid() 183 xfeatures &= XFEATURE_MASK_USER_DYNAMIC; in kvm_check_cpuid() 184 if (!xfeatures) in kvm_check_cpuid() 187 return fpu_enable_guest_xfd_features(&vcpu->arch.guest_fpu, xfeatures); in kvm_check_cpuid()
|