OSDN Git Service

Merge branch kvm-arm64/pmu/reset-values into kvmarm-master/next
authorMarc Zyngier <maz@kernel.org>
Fri, 20 Aug 2021 11:14:12 +0000 (12:14 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Aug 2021 11:14:12 +0000 (12:14 +0100)
commita4516f32f0e60c26c20f137417e2ec64de0abcbb
treecf434c2336d481b666f2a6e1df59aa54c4199a49
parentc500bee1c5b2f1d59b1081ac879d73268ab0ff17
parent7a3ba3095a32f9c4ec8f30d680fea5150e12c3f3
Merge branch kvm-arm64/pmu/reset-values into kvmarm-master/next

Fix the reset values for our PMU emulation. As a side effect,
it allows a nice optimisation by only tracking the in-use
counters when flipping them on and off, now that we are
guaranteed not to have any spurious bit set.

* kvm-arm64/pmu/reset-values:
  KVM: arm64: Remove PMSWINC_EL0 shadow register
  KVM: arm64: Disabling disabled PMU counters wastes a lot of time
  KVM: arm64: Drop unnecessary masking of PMU registers
  KVM: arm64: Narrow PMU sysreg reset values to architectural requirements

Signed-off-by: Marc Zyngier <maz@kernel.org>