Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/arch/x86/include/asm/
Dsvm.h281 u64 xcr0; member
413 DEFINE_GHCB_ACCESSORS(xcr0)
Dkvm_host.h614 u64 xcr0; member
/kernel/linux/linux-5.10/arch/x86/kvm/
Dx86.c900 if (vcpu->arch.xcr0 != host_xcr0) in kvm_load_guest_xsave_state()
901 xsetbv(XCR_XFEATURE_ENABLED_MASK, vcpu->arch.xcr0); in kvm_load_guest_xsave_state()
910 (vcpu->arch.xcr0 & XFEATURE_MASK_PKRU)) && in kvm_load_guest_xsave_state()
920 (vcpu->arch.xcr0 & XFEATURE_MASK_PKRU))) { in kvm_load_host_xsave_state()
928 if (vcpu->arch.xcr0 != host_xcr0) in kvm_load_host_xsave_state()
941 u64 xcr0 = xcr; in __kvm_set_xcr() local
942 u64 old_xcr0 = vcpu->arch.xcr0; in __kvm_set_xcr()
948 if (!(xcr0 & XFEATURE_MASK_FP)) in __kvm_set_xcr()
950 if ((xcr0 & XFEATURE_MASK_YMM) && !(xcr0 & XFEATURE_MASK_SSE)) in __kvm_set_xcr()
959 if (xcr0 & ~valid_bits) in __kvm_set_xcr()
[all …]
Dcpuid.c129 best->ebx = xstate_required_size(vcpu->arch.xcr0, false); in kvm_update_cpuid_runtime()
134 best->ebx = xstate_required_size(vcpu->arch.xcr0, true); in kvm_update_cpuid_runtime()