Home
last modified time | relevance | path

Searched refs:xgetbv (Results 1 – 9 of 9) sorted by relevance

/linux/arch/x86/include/asm/fpu/
H A Dxcr.h8 static __always_inline u64 xgetbv(u32 index) in xgetbv() function
12 asm volatile("xgetbv" : "=a" (eax), "=d" (edx) : "c" (index)); in xgetbv()
32 return xgetbv(XCR_XFEATURE_IN_USE_MASK); in xfeatures_in_use()
/linux/tools/testing/selftests/kvm/x86/
H A Dxcr0_cpuid_test.c57 initial_xcr0 = xgetbv(0); in guest_code()
H A Dsev_smoke_test.c207 (xgetbv(0) & kvm_cpu_supported_xcr0() & xf_mask) == xf_mask) { in test_sev_smoke()
H A Damx_test.c89 GUEST_ASSERT((xgetbv(0) & XFEATURE_MASK_XTILE) == XFEATURE_MASK_XTILE); in check_xtile_info()
/linux/tools/testing/selftests/x86/
H A Dxstate.c37 static inline uint64_t xgetbv(uint32_t index) in xgetbv() function
41 asm volatile("xgetbv" : "=a" (eax), "=d" (edx) : "c" (index)); in xgetbv()
307 if (*(uint64_t *)get_fpx_sw_bytes(xbuf1) == xgetbv(0)) in ptracer_inject_xstate()
/linux/arch/x86/boot/startup/
H A Dsev-shared.c355 ghcb_set_xcr0(ghcb, xgetbv(XCR_XFEATURE_ENABLED_MASK)); in __sev_cpuid_hv_ghcb()
534 xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); in snp_cpuid_postprocess()
/linux/arch/x86/coco/sev/
H A Dvc-shared.c450 ghcb_set_xcr0(ghcb, xgetbv(XCR_XFEATURE_ENABLED_MASK)); in vc_handle_cpuid()
452 /* xgetbv will cause #GP - use reset value for xcr0 */ in vc_handle_cpuid()
/linux/tools/testing/selftests/kvm/include/x86/
H A Dprocessor.h588 static inline u64 xgetbv(u32 index) in xgetbv() function
592 __asm__ __volatile__("xgetbv;" in xgetbv()
1300 BUILD_READ_U64_SAFE_HELPERS(xgetbv) in BUILD_READ_U64_SAFE_HELPERS()
/linux/arch/x86/kvm/
H A Dx86.c9678 kvm_host.xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); in kvm_x86_vendor_init()