]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Mask off reserved bits in CPUID.8000001FH
authorJim Mattson <jmattson@google.com>
Thu, 29 Sep 2022 22:52:03 +0000 (15:52 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Oct 2022 08:41:54 +0000 (04:41 -0400)
commit5387c1a3bf1e78c6fd6ae4b225377cb03532351b
treebc0a6adfec377c2321f77b658dfcf920f20c8009
parent2233d0672fb2a9c0a285d8fd5690a699cf48aa6b
KVM: x86: Mask off reserved bits in CPUID.8000001FH

KVM_GET_SUPPORTED_CPUID should only enumerate features that KVM
actually supports. CPUID.8000001FH:EBX[31:16] are reserved bits and
should be masked off.

Fixes: 27bf221fac08 ("KVM: X86: Extend CPUID range to include new leaf")
Signed-off-by: Jim Mattson <jmattson@google.com>
Message-Id: <20220929225203.2234702-6-jmattson@google.com>
Cc: stable@vger.kernel.org
[Clear NumVMPL too. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c