diff options
author | 2022-09-29 15:52:00 -0700 | |
---|---|---|
committer | 2022-10-22 07:54:36 -0400 | |
commit | 7030d8530e533844e2f4b0e7476498afcd324634 (patch) | |
tree | d885616d58aa4f34e9535ad8770d1b888ae30f11 /scripts/generate_rust_analyzer.py | |
parent | KVM: x86: Mask off reserved bits in CPUID.80000006H (diff) | |
download | linux-dev-7030d8530e533844e2f4b0e7476498afcd324634.tar.xz linux-dev-7030d8530e533844e2f4b0e7476498afcd324634.zip |
KVM: x86: Mask off reserved bits in CPUID.80000008H
KVM_GET_SUPPORTED_CPUID should only enumerate features that KVM
actually supports. The following ranges of CPUID.80000008H are reserved
and should be masked off:
ECX[31:18]
ECX[11:8]
In addition, the PerfTscSize field at ECX[17:16] should also be zero
because KVM does not set the PERFTSC bit at CPUID.80000001H.ECX[27].
Fixes: 24c82e576b78 ("KVM: Sanitize cpuid")
Signed-off-by: Jim Mattson <jmattson@google.com>
Message-Id: <20220929225203.2234702-3-jmattson@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions