Re: [PATCH v5 5/5] KVM: arm/arm64: support chained PMU counters

2019-05-09 Thread Andrew Murray
On Thu, May 02, 2019 at 10:22:18AM +0100, Julien Thierry wrote: > Hi Andrew, > > I have a few remarks. I don't think it's anything major, nor that the > approach need to be changed. :) Thanks for the responsive review. > > On 01/05/2019 17:31, Andrew Murray wrote: > > ARMv8 provides support

Re: [PATCH v5 5/5] KVM: arm/arm64: support chained PMU counters

2019-05-02 Thread Julien Thierry
Hi Andrew, I have a few remarks. I don't think it's anything major, nor that the approach need to be changed. On 01/05/2019 17:31, Andrew Murray wrote: > ARMv8 provides support for chained PMU counters, where an event type > of 0x001E is set for odd-numbered counters, the event counter will >

[PATCH v5 5/5] KVM: arm/arm64: support chained PMU counters

2019-05-01 Thread Andrew Murray
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