]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Mask off reserved bits in CPUID.80000006H
authorJim Mattson <jmattson@google.com>
Thu, 29 Sep 2022 22:51:59 +0000 (15:51 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 22 Oct 2022 11:54:35 +0000 (07:54 -0400)
commitb7daa21357349498ac6954e8d08e3dc1646e5bf0
treeb9658f20aa08bedf676d1f72add9c40323c77e39
parent4bc176a33dea39089152025fc572681561db4b38
KVM: x86: Mask off reserved bits in CPUID.80000006H

KVM_GET_SUPPORTED_CPUID should only enumerate features that KVM
actually supports. CPUID.80000006H:EDX[17:16] are reserved bits and
should be masked off.

Fixes: e6c808719ec8 ("KVM: pass through CPUID(0x80000006)")
Signed-off-by: Jim Mattson <jmattson@google.com>
Message-Id: <20220929225203.2234702-2-jmattson@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c