diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-11-13 12:39:45 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-11-13 14:40:56 -0500 |
commit | b467ab82a9fde4b46c0cd2c299220857afb0e0d4 (patch) | |
tree | d6aeaa7de1367983f667668ba5cb8aad21163094 /arch/arm64/include/asm/extable.h | |
parent | a0423af92cb31e6fc4f53ef9b6e19fdf08ad4395 (diff) |
KVM: x86: expose MSR_PLATFORM_INFO as a feature MSR
For userspace that wants to disable KVM_X86_QUIRK_STUFF_FEATURE_MSRS, it
is useful to know what bits can be set to 1 in MSR_PLATFORM_INFO (apart
from the TSC ratio). The right way to do that is via /dev/kvm's
feature MSR mechanism.
In fact, MSR_PLATFORM_INFO is already a feature MSR for the purpose of
blocking updates after the vCPU is run, but KVM_GET_MSRS did not return
a valid value for it.
Just like in a VM that leaves KVM_X86_QUIRK_STUFF_FEATURE_MSRS enabled,
the TSC ratio field is left to 0. Only bit 31 is set.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/arm64/include/asm/extable.h')
0 files changed, 0 insertions, 0 deletions