]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/pmu: Don't overwrite the pmu->global_ctrl when refreshing
authorLike Xu <likexu@tencent.com>
Tue, 10 May 2022 04:44:07 +0000 (12:44 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 08:48:32 +0000 (04:48 -0400)
commitc43ba9a7b7aa159ec1a72d5a4790c372c104b1ea
tree84102f4ec19e0637449a37cdb3fe182ba8003857
parent2f9392779a5fabed1fa677efbf5197d3d1a7750d
KVM: x86/pmu: Don't overwrite the pmu->global_ctrl when refreshing

Assigning a value to pmu->global_ctrl just to set the value of
pmu->global_ctrl_mask is more readable but does not conform to the
specification. The value is reset to zero on Power up and Reset but
stays unchanged on INIT, like most other MSRs.

Signed-off-by: Like Xu <likexu@tencent.com>
Message-Id: <20220510044407.26445-1-likexu@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/pmu_intel.c