Home
last modified time | relevance | path

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

/linux-6.15/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 *v…
/linux-6.15/arch/x86/include/asm/
H A Dsvm.h447 u64 xcr0; member
500 u64 xcr0; member
691 DEFINE_GHCB_ACCESSORS(xcr0)
H A Dkvm_host.h858 u64 xcr0; member
/linux-6.15/arch/x86/kernel/fpu/
H A Dcore.c398 u64 xcr0, u32 *vpkru) in fpu_copy_uabi_to_guest_fpstate() argument
412 if (ustate->xsave.header.xfeatures & ~xcr0) in fpu_copy_uabi_to_guest_fpstate()
/linux-6.15/arch/x86/coco/sev/
H A Dshared.c613 u64 xcr0 = 1, xss = 0; in snp_cpuid_postprocess() local
620 xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); in snp_cpuid_postprocess()
646 xsave_size = snp_cpuid_calc_xsave_size(xcr0 | xss, compacted); in snp_cpuid_postprocess()
H A Dcore.c1369 vmsa->xcr0 = AP_INIT_XCR0_DEFAULT; in wakeup_cpu_via_vmgexit()
/linux-6.15/arch/x86/kvm/
H A Dx86.c1172 if (vcpu->arch.xcr0 != kvm_host.xcr0) in kvm_load_guest_xsave_state()
1203 if (vcpu->arch.xcr0 != kvm_host.xcr0) in kvm_load_host_xsave_state()
1223 u64 xcr0 = xcr; in __kvm_set_xcr() local
1224 u64 old_xcr0 = vcpu->arch.xcr0; in __kvm_set_xcr()
1230 if (!(xcr0 & XFEATURE_MASK_FP)) in __kvm_set_xcr()
1232 if ((xcr0 & XFEATURE_MASK_YMM) && !(xcr0 & XFEATURE_MASK_SSE)) in __kvm_set_xcr()
1241 if (xcr0 & ~valid_bits) in __kvm_set_xcr()
1248 if (xcr0 & XFEATURE_MASK_AVX512) { in __kvm_set_xcr()
1249 if (!(xcr0 & XFEATURE_MASK_YMM)) in __kvm_set_xcr()
1255 if ((xcr0 & XFEATURE_MASK_XTILE) && in __kvm_set_xcr()
[all …]
H A Dx86.h46 u64 xcr0; member
H A Dcpuid.c331 best->ebx = xstate_required_size(vcpu->arch.xcr0, false); in kvm_update_cpuid_runtime()
336 best->ebx = xstate_required_size(vcpu->arch.xcr0, true); in kvm_update_cpuid_runtime()
/linux-6.15/arch/x86/hyperv/
H A Divm.c327 vmsa->xcr0 = 1; in hv_snp_boot_ap()
/linux-6.15/arch/x86/kvm/svm/
H A Dsvm.h849 DEFINE_KVM_GHCB_ACCESSORS(xcr0)
H A Dsev.c840 save->xcr0 = svm->vcpu.arch.xcr0; in sev_es_sync_vmsa()
3264 vcpu->arch.xcr0 = ghcb_get_xcr0(ghcb); in sev_es_sync_from_ghcb()
4567 hostsa->xcr0 = kvm_host.xcr0; in sev_es_prepare_switch_to_guest()