diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2022-03-25 14:21:40 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-03-29 19:22:07 +0200 |
commit | b1e34d325397a33d97d845e312d7cf2a8b646b44 (patch) | |
tree | 8c8a40aee36f06cdbedcd0a33e9335b4e4dda67c /arch/x86/kvm/x86.c | |
parent | KVM: x86: Avoid theoretical NULL pointer dereference in kvm_irq_delivery_to_a... (diff) | |
download | linux-b1e34d325397a33d97d845e312d7cf2a8b646b44.tar.xz linux-b1e34d325397a33d97d845e312d7cf2a8b646b44.zip |
KVM: x86: Forbid VMM to set SYNIC/STIMER MSRs when SynIC wasn't activated
Setting non-zero values to SYNIC/STIMER MSRs activates certain features,
this should not happen when KVM_CAP_HYPERV_SYNIC{,2} was not activated.
Note, it would've been better to forbid writing anything to SYNIC/STIMER
MSRs, including zeroes, however, at least QEMU tries clearing
HV_X64_MSR_STIMER0_CONFIG without SynIC. HV_X64_MSR_EOM MSR is somewhat
'special' as writing zero there triggers an action, this also should not
happen when SynIC wasn't activated.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20220325132140.25650-4-vkuznets@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions