All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] KVM: arm64: Assorted PMU emulation fixes
@ 2019-10-06 10:46 ` maz
  0 siblings, 0 replies; 27+ messages in thread
From: maz @ 2019-10-06 10:46 UTC (permalink / raw)
  To: linux-arm-kernel, kvmarm, kvm; +Cc: Marc Zyngier

From: Marc Zyngier <maz@kernel.org>

I recently came across a number of PMU emulation bugs, all which can
result in unexpected behaviours in an unsuspecting guest. The first
two patches already have been discussed on the list, but I'm including
them here as part of a slightly longer series. The last patch fixes an
issue that has been here from day one, where we confuse architectural
overflow of a counter and perf sampling period.

If nobody disagrees, I'll send them upstream shortly.

Marc Zyngier (3):
  KVM: arm64: pmu: Fix cycle counter truncation
  arm64: KVM: Handle PMCR_EL0.LC as RES1 on pure AArch64 systems
  KVM: arm64: pmu: Reset sample period on overflow handling

 arch/arm64/kvm/sys_regs.c |  4 ++++
 virt/kvm/arm/pmu.c        | 34 ++++++++++++++++++++++++----------
 2 files changed, 28 insertions(+), 10 deletions(-)

-- 
2.20.1

_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2019-10-07 17:17 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-06 10:46 [PATCH 0/3] KVM: arm64: Assorted PMU emulation fixes maz
2019-10-06 10:46 ` maz
2019-10-06 10:46 ` maz
2019-10-06 10:46 ` [PATCH 1/3] KVM: arm64: pmu: Fix cycle counter truncation maz
2019-10-06 10:46   ` maz
2019-10-06 10:46   ` maz
2019-10-07  8:48   ` Andrew Murray
2019-10-07  8:48     ` Andrew Murray
2019-10-07  8:48     ` Andrew Murray
2019-10-06 10:46 ` [PATCH 2/3] arm64: KVM: Handle PMCR_EL0.LC as RES1 on pure AArch64 systems maz
2019-10-06 10:46   ` maz
2019-10-06 10:46   ` maz
2019-10-06 10:46 ` [PATCH 3/3] KVM: arm64: pmu: Reset sample period on overflow handling maz
2019-10-06 10:46   ` maz
2019-10-06 10:46   ` maz
2019-10-07  9:43   ` Andrew Murray
2019-10-07  9:43     ` Andrew Murray
2019-10-07  9:43     ` Andrew Murray
2019-10-07 10:48     ` Marc Zyngier
2019-10-07 10:48       ` Marc Zyngier
2019-10-07 10:48       ` Marc Zyngier
2019-10-07 13:04       ` Andrew Murray
2019-10-07 13:04         ` Andrew Murray
2019-10-07 13:04         ` Andrew Murray
2019-10-07 17:17         ` Marc Zyngier
2019-10-07 17:17           ` Marc Zyngier
2019-10-07 17:17           ` Marc Zyngier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.