mbox series

[0/4] KVM: arm/arm64: add support for chained counters

Message ID 1548154197-5470-1-git-send-email-andrew.murray@arm.com (mailing list archive)
Headers show
Series KVM: arm/arm64: add support for chained counters | expand

Message

Andrew Murray Jan. 22, 2019, 10:49 a.m. UTC
ARMv8 provides support for chained PMU counters, where an event type
of 0x001E is set for odd-numbered counters, the event counter will
increment by one for each overflow of the preceding even-numbered
counter. Let's emulate this in KVM by creating a 64 bit perf counter
when a user chains two emulated counters together.

Andrew Murray (4):
  KVM: arm/arm64: extract duplicated code to own function
  KVM: arm/arm64: re-create event when setting counter value
  KVM: arm/arm64: lazily create perf events on enable
  KVM: arm/arm64: support chained PMU counters

 include/kvm/arm_pmu.h |   2 +
 virt/kvm/arm/pmu.c    | 377 +++++++++++++++++++++++++++++++++++++++++++-------
 2 files changed, 327 insertions(+), 52 deletions(-)