KVM: x86: Implement MSR_CORE_THREAD_COUNT MSR
commit37656470f67398dd10101d7d940d660053f60ff5
authorAlexander Graf <agraf@csgraf.de>
Tue, 4 Oct 2022 22:56:43 +0000 (5 00:56 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 11 Oct 2022 07:36:01 +0000 (11 09:36 +0200)
tree7a41c313a4cd5a318baee87462f8a837121970bd
parent860054d8ce4067ef2bc3deb2a98cf93350fc03e4
KVM: x86: Implement MSR_CORE_THREAD_COUNT MSR

The MSR_CORE_THREAD_COUNT MSR describes CPU package topology, such as number
of threads and cores for a given package. This is information that QEMU has
readily available and can provide through the new user space MSR deflection
interface.

This patch propagates the existing hvf logic from patch 027ac0cb516
("target/i386/hvf: add rdmsr 35H MSR_CORE_THREAD_COUNT") to KVM.

Signed-off-by: Alexander Graf <agraf@csgraf.de>
Message-Id: <20221004225643.65036-4-agraf@csgraf.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm/kvm.c