]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/x86/kvm/cpuid.c
x86/cpufeature: Replace cpu_has_xsave with boot_cpu_has() usage
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / kvm / cpuid.c
index 8efb839948e512e9aac6aaf544230195614297c1..a056b72c2f33bf0f56f37075c87355146db1e7a8 100644 (file)
@@ -75,7 +75,7 @@ int kvm_update_cpuid(struct kvm_vcpu *vcpu)
                return 0;
 
        /* Update OSXSAVE bit */
-       if (cpu_has_xsave && best->function == 0x1) {
+       if (boot_cpu_has(X86_FEATURE_XSAVE) && best->function == 0x1) {
                best->ecx &= ~F(OSXSAVE);
                if (kvm_read_cr4_bits(vcpu, X86_CR4_OSXSAVE))
                        best->ecx |= F(OSXSAVE);