KVM: vmx, pmu: accept 0 for host-initiated write to MSR_IA32_DS_AREA
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 1 Jun 2022 07:21:19 +0000 (03:21 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 08:48:37 +0000 (04:48 -0400)
commitbfb088d9fb5abdd3fbf00bae9abdfee8b92265aa
treef1a055b8beaaaf87004ce2fdf8a72a8494ee168f
parent98defd2e17803263f49548fea930cfc974d505aa
KVM: vmx, pmu: accept 0 for host-initiated write to MSR_IA32_DS_AREA

Whenever an MSR is part of KVM_GET_MSR_INDEX_LIST, as is the case
for MSR_IA32_DS_AREA, it has to be always settable with KVM_SET_MSR.
Accept a zero value for these MSRs to obey the contract.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/pmu_intel.c