]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Mask off reserved bits in CPUID.8000001AH
authorJim Mattson <jmattson@google.com>
Thu, 29 Sep 2022 22:52:01 +0000 (15:52 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 22 Oct 2022 11:54:36 +0000 (07:54 -0400)
commit2233d0672fb2a9c0a285d8fd5690a699cf48aa6b
treeb522689a5f8b1c42a332fdeb26cd22633cd21a63
parentd373963c2eba92694c2277451de1d4d7be323c8b
KVM: x86: Mask off reserved bits in CPUID.8000001AH

KVM_GET_SUPPORTED_CPUID should only enumerate features that KVM
actually supports. In the case of CPUID.8000001AH, only three bits are
currently defined. The 125 reserved bits should be masked off.

Fixes: 4c6c3c2fac70 ("KVM: Sanitize cpuid")
Signed-off-by: Jim Mattson <jmattson@google.com>
Message-Id: <20220929225203.2234702-4-jmattson@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c