Lines Matching refs:xcr0
1025 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()
1097 if ((!(xcr0 & XFEATURE_MASK_BNDREGS)) != in __kvm_set_xcr()
1098 (!(xcr0 & XFEATURE_MASK_BNDCSR))) in __kvm_set_xcr()
1101 if (xcr0 & XFEATURE_MASK_AVX512) { in __kvm_set_xcr()
1102 if (!(xcr0 & XFEATURE_MASK_YMM)) in __kvm_set_xcr()
1104 if ((xcr0 & XFEATURE_MASK_AVX512) != XFEATURE_MASK_AVX512) in __kvm_set_xcr()
1108 if ((xcr0 & XFEATURE_MASK_XTILE) && in __kvm_set_xcr()
1109 ((xcr0 & XFEATURE_MASK_XTILE) != XFEATURE_MASK_XTILE)) in __kvm_set_xcr()
1112 vcpu->arch.xcr0 = xcr0; in __kvm_set_xcr()
1114 if ((xcr0 ^ old_xcr0) & XFEATURE_MASK_EXTEND) in __kvm_set_xcr()
5447 guest_xcrs->xcrs[0].value = vcpu->arch.xcr0; in kvm_vcpu_ioctl_x86_get_xcrs()