]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Check .flags in kvm_cpuid_check_equal() too
authorVitaly Kuznetsov <vkuznets@redhat.com>
Wed, 26 Jan 2022 13:18:04 +0000 (14:18 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Jan 2022 17:15:03 +0000 (12:15 -0500)
commit88428401d5d5f2c6e350d897388788c315a2c3da
tree9e93ea4de7eda3507d1fe7296237cde34b30d55f
parentec710a8bdb7444de80d87a701a4f6520e16bed39
KVM: x86: Check .flags in kvm_cpuid_check_equal() too

kvm_cpuid_check_equal() checks for the (full) equality of the supplied
CPUID data so .flags need to be checked too.

Reported-by: Sean Christopherson <seanjc@google.com>
Fixes: 1fadf0d69228 ("KVM: x86: Partially allow KVM_SET_CPUID{,2} after KVM_RUN")
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20220126131804.2839410-1-vkuznets@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c