Home
last modified time | relevance | path

Searched refs:xcr0 (Results 1 – 10 of 10) sorted by relevance

/linux-6.3-rc2/tools/testing/selftests/kvm/x86_64/
A Damx_test.c173 uint64_t cr4, xcr0; in init_regs() local
180 xcr0 = __xgetbv(0); in init_regs()
181 xcr0 |= XFEATURE_MASK_XTILE; in init_regs()
182 __xsetbv(0x0, xcr0); in init_regs()
/linux-6.3-rc2/arch/x86/include/asm/fpu/
A Dapi.h152 extern int fpu_copy_uabi_to_guest_fpstate(struct fpu_guest *gfpu, const void *buf, u64 xcr0, u32 *v…
/linux-6.3-rc2/arch/x86/include/asm/
A Dsvm.h433 u64 xcr0; member
486 u64 xcr0; member
669 DEFINE_GHCB_ACCESSORS(xcr0)
A Dkvm_host.h807 u64 xcr0; member
/linux-6.3-rc2/arch/x86/kernel/
A Dsev-shared.c426 u64 xcr0 = 1, xss = 0; in snp_cpuid_postprocess() local
433 xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); in snp_cpuid_postprocess()
459 xsave_size = snp_cpuid_calc_xsave_size(xcr0 | xss, compacted); in snp_cpuid_postprocess()
A Dsev.c1069 vmsa->xcr0 = AP_INIT_XCR0_DEFAULT; in wakeup_cpu_via_vmgexit()
/linux-6.3-rc2/arch/x86/kernel/fpu/
A Dcore.c390 u64 xcr0, u32 *vpkru) in fpu_copy_uabi_to_guest_fpstate() argument
404 if (ustate->xsave.header.xfeatures & ~xcr0) in fpu_copy_uabi_to_guest_fpstate()
/linux-6.3-rc2/arch/x86/kvm/
A Dx86.c992 if (vcpu->arch.xcr0 != host_xcr0) in kvm_load_guest_xsave_state()
1027 if (vcpu->arch.xcr0 != host_xcr0) in kvm_load_host_xsave_state()
1047 u64 xcr0 = xcr; in __kvm_set_xcr() local
1048 u64 old_xcr0 = vcpu->arch.xcr0; in __kvm_set_xcr()
1054 if (!(xcr0 & XFEATURE_MASK_FP)) in __kvm_set_xcr()
1056 if ((xcr0 & XFEATURE_MASK_YMM) && !(xcr0 & XFEATURE_MASK_SSE)) in __kvm_set_xcr()
1065 if (xcr0 & ~valid_bits) in __kvm_set_xcr()
1072 if (xcr0 & XFEATURE_MASK_AVX512) { in __kvm_set_xcr()
1073 if (!(xcr0 & XFEATURE_MASK_YMM)) in __kvm_set_xcr()
1079 if ((xcr0 & XFEATURE_MASK_XTILE) && in __kvm_set_xcr()
[all …]
A Dcpuid.c282 best->ebx = xstate_required_size(vcpu->arch.xcr0, false); in __kvm_update_cpuid_runtime()
287 best->ebx = xstate_required_size(vcpu->arch.xcr0, true); in __kvm_update_cpuid_runtime()
/linux-6.3-rc2/arch/x86/kvm/svm/
A Dsev.c603 save->xcr0 = svm->vcpu.arch.xcr0; in sev_es_sync_vmsa()
2423 vcpu->arch.xcr0 = ghcb_get_xcr0(ghcb); in sev_es_sync_from_ghcb()
3024 hostsa->xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); in sev_es_prepare_switch_to_guest()

Completed in 60 milliseconds