Home
last modified time | relevance | path

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

/arch/x86/include/asm/fpu/
Dapi.h162 extern int fpu_copy_uabi_to_guest_fpstate(struct fpu_guest *gfpu, const void *buf, u64 xcr0, u32 *v…
/arch/x86/include/asm/
Dsvm.h445 u64 xcr0; member
498 u64 xcr0; member
681 DEFINE_GHCB_ACCESSORS(xcr0)
Dkvm_host.h803 u64 xcr0; member
/arch/x86/kernel/fpu/
Dcore.c391 u64 xcr0, u32 *vpkru) in fpu_copy_uabi_to_guest_fpstate() argument
405 if (ustate->xsave.header.xfeatures & ~xcr0) in fpu_copy_uabi_to_guest_fpstate()
/arch/x86/kernel/
Dsev-shared.c464 u64 xcr0 = 1, xss = 0; in snp_cpuid_postprocess() local
471 xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); in snp_cpuid_postprocess()
497 xsave_size = snp_cpuid_calc_xsave_size(xcr0 | xss, compacted); in snp_cpuid_postprocess()
Dsev.c1041 vmsa->xcr0 = AP_INIT_XCR0_DEFAULT; in wakeup_cpu_via_vmgexit()
/arch/x86/hyperv/
Divm.c327 vmsa->xcr0 = 1; in hv_snp_boot_ap()
/arch/x86/kvm/
Dx86.c1025 if (vcpu->arch.xcr0 != host_xcr0) in kvm_load_guest_xsave_state()
1026 xsetbv(XCR_XFEATURE_ENABLED_MASK, vcpu->arch.xcr0); in kvm_load_guest_xsave_state()
1035 ((vcpu->arch.xcr0 & XFEATURE_MASK_PKRU) || in kvm_load_guest_xsave_state()
1047 ((vcpu->arch.xcr0 & XFEATURE_MASK_PKRU) || in kvm_load_host_xsave_state()
1056 if (vcpu->arch.xcr0 != host_xcr0) in kvm_load_host_xsave_state()
1076 u64 xcr0 = xcr; in __kvm_set_xcr() local
1077 u64 old_xcr0 = vcpu->arch.xcr0; in __kvm_set_xcr()
1083 if (!(xcr0 & XFEATURE_MASK_FP)) in __kvm_set_xcr()
1085 if ((xcr0 & XFEATURE_MASK_YMM) && !(xcr0 & XFEATURE_MASK_SSE)) in __kvm_set_xcr()
1094 if (xcr0 & ~valid_bits) in __kvm_set_xcr()
[all …]
Dcpuid.c288 best->ebx = xstate_required_size(vcpu->arch.xcr0, false); in __kvm_update_cpuid_runtime()
293 best->ebx = xstate_required_size(vcpu->arch.xcr0, true); in __kvm_update_cpuid_runtime()
/arch/x86/kvm/svm/
Dsvm.h725 DEFINE_KVM_GHCB_ACCESSORS(xcr0)
Dsev.c617 save->xcr0 = svm->vcpu.arch.xcr0; in sev_es_sync_vmsa()
2479 vcpu->arch.xcr0 = ghcb_get_xcr0(ghcb); in sev_es_sync_from_ghcb()
3144 hostsa->xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); in sev_es_prepare_switch_to_guest()