Re: [PATCH v11 16/21] KVM: ARM64: Add PMU overflow interrupt routing

2016-02-21 Thread Shannon Zhao
On 2016/2/8 20:26, Christoffer Dall wrote: > On Fri, Feb 05, 2016 at 03:14:11PM +0800, Shannon Zhao wrote: >> From: Shannon Zhao >> >> When calling perf_event_create_kernel_counter to create perf_event, >> assign a overflow handler. Then when the perf event overflows, set the >> corresponding bi

Re: [PATCH v11 16/21] KVM: ARM64: Add PMU overflow interrupt routing

2016-02-20 Thread Shannon Zhao
On 2016/2/8 20:26, Christoffer Dall wrote: On Fri, Feb 05, 2016 at 03:14:11PM +0800, Shannon Zhao wrote: >From: Shannon Zhao > >When calling perf_event_create_kernel_counter to create perf_event, >assign a overflow handler. Then when the perf event overflows, set the >corresponding bit of gues

Re: [PATCH v11 16/21] KVM: ARM64: Add PMU overflow interrupt routing

2016-02-08 Thread Christoffer Dall
On Fri, Feb 05, 2016 at 03:14:11PM +0800, Shannon Zhao wrote: > From: Shannon Zhao > > When calling perf_event_create_kernel_counter to create perf_event, > assign a overflow handler. Then when the perf event overflows, set the > corresponding bit of guest PMOVSSET register. If this counter is en

[PATCH v11 16/21] KVM: ARM64: Add PMU overflow interrupt routing

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao When calling perf_event_create_kernel_counter to create perf_event, assign a overflow handler. Then when the perf event overflows, set the corresponding bit of guest PMOVSSET register. If this counter is enabled and its interrupt is enabled as well, kick the vcpu to sync the in