Home
last modified time | relevance | path

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

/Linux-v4.19/arch/x86/kvm/
Dcpuid.c60 u64 xcr0 = KVM_SUPPORTED_XCR0 & host_xcr0; in kvm_supported_xcr0() local
63 xcr0 &= ~(XFEATURE_MASK_BNDREGS | XFEATURE_MASK_BNDCSR); in kvm_supported_xcr0()
65 return xcr0; in kvm_supported_xcr0()
119 xstate_required_size(vcpu->arch.xcr0, false); in kvm_update_cpuid()
124 best->ebx = xstate_required_size(vcpu->arch.xcr0, true); in kvm_update_cpuid()
Dx86.c721 if (vcpu->arch.xcr0 != host_xcr0) in kvm_load_guest_xcr0()
722 xsetbv(XCR_XFEATURE_ENABLED_MASK, vcpu->arch.xcr0); in kvm_load_guest_xcr0()
730 if (vcpu->arch.xcr0 != host_xcr0) in kvm_put_guest_xcr0()
738 u64 xcr0 = xcr; in __kvm_set_xcr() local
739 u64 old_xcr0 = vcpu->arch.xcr0; in __kvm_set_xcr()
745 if (!(xcr0 & XFEATURE_MASK_FP)) in __kvm_set_xcr()
747 if ((xcr0 & XFEATURE_MASK_YMM) && !(xcr0 & XFEATURE_MASK_SSE)) in __kvm_set_xcr()
756 if (xcr0 & ~valid_bits) in __kvm_set_xcr()
759 if ((!(xcr0 & XFEATURE_MASK_BNDREGS)) != in __kvm_set_xcr()
760 (!(xcr0 & XFEATURE_MASK_BNDCSR))) in __kvm_set_xcr()
[all …]
/Linux-v4.19/arch/x86/include/asm/
Dkvm_host.h573 u64 xcr0; member