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

/linux-master/tools/testing/selftests/kvm/x86_64/
H A Damx_test.c129 uint64_t cr4, xcr0; local
139 xcr0 = xgetbv(0);
140 xcr0 |= XFEATURE_MASK_XTILE;
141 xsetbv(0x0, xcr0);
/linux-master/arch/x86/include/asm/fpu/
H A Dapi.h162 extern int fpu_copy_uabi_to_guest_fpstate(struct fpu_guest *gfpu, const void *buf, u64 xcr0, u32 *vpkru);
/linux-master/arch/x86/include/asm/
H A Dsvm.h441 u64 xcr0; member in struct:sev_es_save_area
494 u64 xcr0; member in struct:ghcb_save_area
675 DEFINE_GHCB_ACCESSORS(xcr0)
H A Dkvm_host.h830 u64 xcr0; member in struct:kvm_vcpu_arch
/linux-master/arch/x86/kernel/fpu/
H A Dcore.c391 u64 xcr0, u32 *vpkru)
405 if (ustate->xsave.header.xfeatures & ~xcr0)
390 fpu_copy_uabi_to_guest_fpstate(struct fpu_guest *gfpu, const void *buf, u64 xcr0, u32 *vpkru) argument
/linux-master/arch/x86/kernel/
H A Dsev-shared.c298 /* Safe to read xcr0 */
301 /* xgetbv will cause #UD - use reset value for xcr0 */
470 u64 xcr0 = 1, xss = 0; local
477 xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK);
503 xsave_size = snp_cpuid_calc_xsave_size(xcr0 | xss, compacted);
970 /* Safe to read xcr0 */
973 /* xgetbv will cause #GP - use reset value for xcr0 */
H A Dsev.c1060 vmsa->xcr0 = AP_INIT_XCR0_DEFAULT;
/linux-master/arch/x86/hyperv/
H A Divm.c328 vmsa->xcr0 = 1;
/linux-master/arch/x86/kvm/svm/
H A Dsev.c619 save->xcr0 = svm->vcpu.arch.xcr0;
2470 vcpu->arch.xcr0 = ghcb_get_xcr0(ghcb);
3140 hostsa->xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK);
H A Dsvm.h727 DEFINE_KVM_GHCB_ACCESSORS(xcr0)
/linux-master/arch/x86/kvm/
H A Dcpuid.c296 best->ebx = xstate_required_size(vcpu->arch.xcr0, false);
301 best->ebx = xstate_required_size(vcpu->arch.xcr0, true);
H A Dx86.c1025 if (vcpu->arch.xcr0 != host_xcr0)
1026 xsetbv(XCR_XFEATURE_ENABLED_MASK, vcpu->arch.xcr0);
1035 ((vcpu->arch.xcr0 & XFEATURE_MASK_PKRU) ||
1047 ((vcpu->arch.xcr0 & XFEATURE_MASK_PKRU) ||
1056 if (vcpu->arch.xcr0 != host_xcr0)
1076 u64 xcr0 = xcr; local
1077 u64 old_xcr0 = vcpu->arch.xcr0;
1080 /* Only support XCR_XFEATURE_ENABLED_MASK(xcr0) now */
1083 if (!(xcr0 & XFEATURE_MASK_FP))
1085 if ((xcr0
[all...]

Completed in 252 milliseconds