Home
last modified time | relevance | path

Searched refs:xgetbv (Results 1 - 12 of 12) sorted by relevance

/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/arch/x86/include/asm/fpu/
H A Dxcr.h18 static inline u64 xgetbv(u32 index) in xgetbv() function
22 asm volatile("xgetbv" : "=a" (eax), "=d" (edx) : "c" (index)); in xgetbv()
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/x86_64/
H A Dxcr0_cpuid_test.c57 xcr0_reset = xgetbv(0); in guest_code()
H A Damx_test.c139 xcr0 = xgetbv(0); in init_regs()
142 GUEST_ASSERT((xgetbv(0) & XFEATURE_MASK_XTILE) == XFEATURE_MASK_XTILE); in init_regs()
H A Dstate_test.c152 xsetbv(0, xgetbv(0) | supported_xcr0); in guest_code()
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dsev-shared.c292 ghcb_set_xcr0(ghcb, xgetbv(XCR_XFEATURE_ENABLED_MASK)); in __sev_cpuid_hv_ghcb()
294 /* xgetbv will cause #UD - use reset value for xcr0 */ in __sev_cpuid_hv_ghcb()
476 xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); in snp_cpuid_postprocess()
964 ghcb_set_xcr0(ghcb, xgetbv(XCR_XFEATURE_ENABLED_MASK)); in vc_handle_cpuid()
966 /* xgetbv will cause #GP - use reset value for xcr0 */ in vc_handle_cpuid()
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dsev-es-shared.c523 ghcb_set_xcr0(ghcb, xgetbv(XCR_XFEATURE_ENABLED_MASK)); in vc_handle_cpuid()
525 /* xgetbv will cause #GP - use reset value for xcr0 */ in vc_handle_cpuid()
/kernel/linux/linux-6.6/tools/testing/selftests/x86/
H A Damx.c42 static inline uint64_t xgetbv(uint32_t index) in xgetbv() function
46 asm volatile("xgetbv;" in xgetbv()
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/include/x86_64/
H A Dprocessor.h545 static inline u64 xgetbv(u32 index) in xgetbv() function
549 __asm__ __volatile__("xgetbv;" in xgetbv()
/kernel/linux/linux-6.6/arch/x86/kvm/svm/
H A Dsev.c3100 hostsa->xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); in sev_es_prepare_switch_to_guest()
/kernel/linux/linux-5.10/arch/x86/kvm/
H A Dx86.c8208 host_xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); in kvm_arch_init()
/kernel/linux/linux-6.6/arch/x86/kvm/
H A Dx86.c9512 host_xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); in __kvm_x86_vendor_init()

Completed in 39 milliseconds