Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/kvm/x86_64/
A Damx_test.c127 uint64_t cr4, xcr0; in init_regs() local
137 xcr0 = xgetbv(0); in init_regs()
138 xcr0 |= XFEATURE_MASK_XTILE; in init_regs()
139 xsetbv(0x0, xcr0); in init_regs()
/linux/arch/x86/include/asm/fpu/
A Dapi.h165 extern int fpu_copy_uabi_to_guest_fpstate(struct fpu_guest *gfpu, const void *buf, u64 xcr0, u32 *v…
/linux/arch/x86/include/asm/
A Dsvm.h448 u64 xcr0; member
501 u64 xcr0; member
692 DEFINE_GHCB_ACCESSORS(xcr0)
A Dkvm_host.h829 u64 xcr0; member
/linux/arch/x86/kernel/fpu/
A 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()
/linux/arch/x86/coco/sev/
A Dshared.c612 u64 xcr0 = 1, xss = 0; in snp_cpuid_postprocess() local
619 xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); in snp_cpuid_postprocess()
645 xsave_size = snp_cpuid_calc_xsave_size(xcr0 | xss, compacted); in snp_cpuid_postprocess()
A Dcore.c1188 vmsa->xcr0 = AP_INIT_XCR0_DEFAULT; in wakeup_cpu_via_vmgexit()
/linux/arch/x86/kvm/
A Dx86.c1210 if (vcpu->arch.xcr0 != kvm_host.xcr0) in kvm_load_guest_xsave_state()
1241 if (vcpu->arch.xcr0 != kvm_host.xcr0) in kvm_load_host_xsave_state()
1261 u64 xcr0 = xcr; in __kvm_set_xcr() local
1262 u64 old_xcr0 = vcpu->arch.xcr0; in __kvm_set_xcr()
1268 if (!(xcr0 & XFEATURE_MASK_FP)) in __kvm_set_xcr()
1270 if ((xcr0 & XFEATURE_MASK_YMM) && !(xcr0 & XFEATURE_MASK_SSE)) in __kvm_set_xcr()
1279 if (xcr0 & ~valid_bits) in __kvm_set_xcr()
1286 if (xcr0 & XFEATURE_MASK_AVX512) { in __kvm_set_xcr()
1287 if (!(xcr0 & XFEATURE_MASK_YMM)) in __kvm_set_xcr()
1293 if ((xcr0 & XFEATURE_MASK_XTILE) && in __kvm_set_xcr()
[all …]
A Dx86.h45 u64 xcr0; member
A Dcpuid.c296 best->ebx = xstate_required_size(vcpu->arch.xcr0, false); in __kvm_update_cpuid_runtime()
301 best->ebx = xstate_required_size(vcpu->arch.xcr0, true); in __kvm_update_cpuid_runtime()
/linux/arch/x86/hyperv/
A Divm.c328 vmsa->xcr0 = 1; in hv_snp_boot_ap()
/linux/arch/x86/kvm/svm/
A Dsvm.h827 DEFINE_KVM_GHCB_ACCESSORS(xcr0)
A Dsev.c851 save->xcr0 = svm->vcpu.arch.xcr0; in sev_es_sync_vmsa()
3276 vcpu->arch.xcr0 = ghcb_get_xcr0(ghcb); in sev_es_sync_from_ghcb()
4599 hostsa->xcr0 = kvm_host.xcr0; in sev_es_prepare_switch_to_guest()

Completed in 79 milliseconds