Home
last modified time | relevance | path

Searched refs:xfeature (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.6/arch/x86/kernel/fpu/
Dxstate.c138 static unsigned int xfeature_get_offset(u64 xcomp_bv, int xfeature) in xfeature_get_offset() argument
147 xfeature <= XFEATURE_SSE) in xfeature_get_offset()
148 return xstate_offsets[xfeature]; in xfeature_get_offset()
159 if (i == xfeature) in xfeature_get_offset()
202 static bool xfeature_enabled(enum xfeature xfeature) in xfeature_enabled() argument
204 return fpu_kernel_cfg.max_features & BIT_ULL(xfeature); in xfeature_enabled()
1396 void fpstate_clear_xstate_component(struct fpstate *fps, unsigned int xfeature) in fpstate_clear_xstate_component() argument
1398 void *addr = get_xsave_addr(&fps->regs.xsave, xfeature); in fpstate_clear_xstate_component()
1401 memset(addr, 0, xstate_sizes[xfeature]); in fpstate_clear_xstate_component()
/Linux-v6.6/arch/x86/include/asm/fpu/
Dapi.h142 extern void fpstate_clear_xstate_component(struct fpstate *fps, unsigned int xfeature);
Dtypes.h102 enum xfeature { enum
/Linux-v6.6/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c700 void __vm_xsave_require_permission(uint64_t xfeature, const char *name) in __vm_xsave_require_permission() argument
714 TEST_ASSERT(is_power_of_2(xfeature), in __vm_xsave_require_permission()
726 __TEST_REQUIRE(bitmask & xfeature, in __vm_xsave_require_permission()
729 TEST_REQUIRE(!syscall(SYS_arch_prctl, ARCH_REQ_XCOMP_GUEST_PERM, ilog2(xfeature))); in __vm_xsave_require_permission()
733 TEST_ASSERT(bitmask & xfeature, in __vm_xsave_require_permission()
735 name, xfeature, bitmask); in __vm_xsave_require_permission()
/Linux-v6.6/tools/testing/selftests/kvm/include/x86_64/
Dprocessor.h1197 void __vm_xsave_require_permission(uint64_t xfeature, const char *name);
1199 #define vm_xsave_require_permission(xfeature) \ argument
1200 __vm_xsave_require_permission(xfeature, #xfeature)