Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2015-02-16 Thread Christoffer Dall
On Mon, Feb 16, 2015 at 05:46:54PM +0530, Anup Patel wrote: > Hi Christoffer, > > On Sun, Feb 15, 2015 at 9:03 PM, Christoffer Dall > wrote: > > Hi Anup, > > > > On Mon, Jan 12, 2015 at 09:49:13AM +0530, Anup Patel wrote: > >> On Mon, Jan 12, 2015 at 12:41 AM, Christoffer Dall > >> wrote: > >> >

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2015-02-16 Thread Anup Patel
Hi Christoffer, On Sun, Feb 15, 2015 at 9:03 PM, Christoffer Dall wrote: > Hi Anup, > > On Mon, Jan 12, 2015 at 09:49:13AM +0530, Anup Patel wrote: >> On Mon, Jan 12, 2015 at 12:41 AM, Christoffer Dall >> wrote: >> > On Tue, Dec 30, 2014 at 11:19:13AM +0530, Anup Patel wrote: >> >> (dropping pre

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2015-02-15 Thread Christoffer Dall
Hi Anup, On Mon, Jan 12, 2015 at 09:49:13AM +0530, Anup Patel wrote: > On Mon, Jan 12, 2015 at 12:41 AM, Christoffer Dall > wrote: > > On Tue, Dec 30, 2014 at 11:19:13AM +0530, Anup Patel wrote: > >> (dropping previous conversation for easy reading) > >> > >> Hi Marc/Christoffer, > >> > >> I trie

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2015-01-13 Thread Anup Patel
On Mon, Jan 12, 2015 at 12:41 AM, Christoffer Dall wrote: > On Tue, Dec 30, 2014 at 11:19:13AM +0530, Anup Patel wrote: >> (dropping previous conversation for easy reading) >> >> Hi Marc/Christoffer, >> >> I tried implementing PMU context-switch via C code >> in EL1 mode and in atomic context with

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2015-01-11 Thread Anup Patel
On Mon, Jan 12, 2015 at 12:41 AM, Christoffer Dall wrote: > On Tue, Dec 30, 2014 at 11:19:13AM +0530, Anup Patel wrote: >> (dropping previous conversation for easy reading) >> >> Hi Marc/Christoffer, >> >> I tried implementing PMU context-switch via C code >> in EL1 mode and in atomic context with

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2015-01-11 Thread Christoffer Dall
On Tue, Dec 30, 2014 at 11:19:13AM +0530, Anup Patel wrote: > (dropping previous conversation for easy reading) > > Hi Marc/Christoffer, > > I tried implementing PMU context-switch via C code > in EL1 mode and in atomic context with irqs disabled. > The context switch itself works perfectly fine

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2015-01-07 Thread Anup Patel
On Tue, Dec 30, 2014 at 11:19 AM, Anup Patel wrote: > (dropping previous conversation for easy reading) > > Hi Marc/Christoffer, > > I tried implementing PMU context-switch via C code > in EL1 mode and in atomic context with irqs disabled. > The context switch itself works perfectly fine but > irq

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-12-29 Thread Anup Patel
(dropping previous conversation for easy reading) Hi Marc/Christoffer, I tried implementing PMU context-switch via C code in EL1 mode and in atomic context with irqs disabled. The context switch itself works perfectly fine but irq forwarding is not clean for PMU irq. I found another issue that i

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-27 Thread Marc Zyngier
On 27/11/14 10:54, Anup Patel wrote: > On Thu, Nov 27, 2014 at 4:10 PM, Marc Zyngier wrote: >> On 27/11/14 10:22, Anup Patel wrote: >>> On Tue, Nov 25, 2014 at 7:12 PM, Christoffer Dall >>> wrote: On Tue, Nov 25, 2014 at 06:17:03PM +0530, Anup Patel wrote: > Hi Christoffer, > > O

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-27 Thread Anup Patel
On Thu, Nov 27, 2014 at 4:10 PM, Marc Zyngier wrote: > On 27/11/14 10:22, Anup Patel wrote: >> On Tue, Nov 25, 2014 at 7:12 PM, Christoffer Dall >> wrote: >>> On Tue, Nov 25, 2014 at 06:17:03PM +0530, Anup Patel wrote: Hi Christoffer, On Mon, Nov 24, 2014 at 8:07 PM, Christoffer Da

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-27 Thread Marc Zyngier
On 27/11/14 10:22, Anup Patel wrote: > On Tue, Nov 25, 2014 at 7:12 PM, Christoffer Dall > wrote: >> On Tue, Nov 25, 2014 at 06:17:03PM +0530, Anup Patel wrote: >>> Hi Christoffer, >>> >>> On Mon, Nov 24, 2014 at 8:07 PM, Christoffer Dall >>> wrote: On Mon, Nov 24, 2014 at 02:14:48PM +0530,

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-27 Thread Anup Patel
On Tue, Nov 25, 2014 at 7:12 PM, Christoffer Dall wrote: > On Tue, Nov 25, 2014 at 06:17:03PM +0530, Anup Patel wrote: >> Hi Christoffer, >> >> On Mon, Nov 24, 2014 at 8:07 PM, Christoffer Dall >> wrote: >> > On Mon, Nov 24, 2014 at 02:14:48PM +0530, Anup Patel wrote: >> >> On Fri, Nov 21, 2014 a

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-25 Thread Christoffer Dall
On Tue, Nov 25, 2014 at 06:17:03PM +0530, Anup Patel wrote: > Hi Christoffer, > > On Mon, Nov 24, 2014 at 8:07 PM, Christoffer Dall > wrote: > > On Mon, Nov 24, 2014 at 02:14:48PM +0530, Anup Patel wrote: > >> On Fri, Nov 21, 2014 at 5:19 PM, Christoffer Dall > >> wrote: > >> > On Fri, Nov 21, 2

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-25 Thread Anup Patel
Hi Christoffer, On Mon, Nov 24, 2014 at 8:07 PM, Christoffer Dall wrote: > On Mon, Nov 24, 2014 at 02:14:48PM +0530, Anup Patel wrote: >> On Fri, Nov 21, 2014 at 5:19 PM, Christoffer Dall >> wrote: >> > On Fri, Nov 21, 2014 at 04:06:05PM +0530, Anup Patel wrote: >> >> Hi Christoffer, >> >> >> >>

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-24 Thread Christoffer Dall
On Mon, Nov 24, 2014 at 02:14:48PM +0530, Anup Patel wrote: > On Fri, Nov 21, 2014 at 5:19 PM, Christoffer Dall > wrote: > > On Fri, Nov 21, 2014 at 04:06:05PM +0530, Anup Patel wrote: > >> Hi Christoffer, > >> > >> On Fri, Nov 21, 2014 at 3:29 PM, Christoffer Dall > >> wrote: > >> > On Thu, Nov

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-24 Thread Anup Patel
On Fri, Nov 21, 2014 at 5:19 PM, Christoffer Dall wrote: > On Fri, Nov 21, 2014 at 04:06:05PM +0530, Anup Patel wrote: >> Hi Christoffer, >> >> On Fri, Nov 21, 2014 at 3:29 PM, Christoffer Dall >> wrote: >> > On Thu, Nov 20, 2014 at 08:17:32PM +0530, Anup Patel wrote: >> >> On Wed, Nov 19, 2014 a

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-21 Thread Christoffer Dall
On Fri, Nov 21, 2014 at 04:06:05PM +0530, Anup Patel wrote: > Hi Christoffer, > > On Fri, Nov 21, 2014 at 3:29 PM, Christoffer Dall > wrote: > > On Thu, Nov 20, 2014 at 08:17:32PM +0530, Anup Patel wrote: > >> On Wed, Nov 19, 2014 at 8:59 PM, Christoffer Dall > >> wrote: > >> > On Tue, Nov 11, 2

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-21 Thread Anup Patel
Hi Christoffer, On Fri, Nov 21, 2014 at 3:29 PM, Christoffer Dall wrote: > On Thu, Nov 20, 2014 at 08:17:32PM +0530, Anup Patel wrote: >> On Wed, Nov 19, 2014 at 8:59 PM, Christoffer Dall >> wrote: >> > On Tue, Nov 11, 2014 at 02:48:25PM +0530, Anup Patel wrote: >> >> Hi All, >> >> >> >> I have

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-21 Thread Christoffer Dall
On Thu, Nov 20, 2014 at 08:17:32PM +0530, Anup Patel wrote: > On Wed, Nov 19, 2014 at 8:59 PM, Christoffer Dall > wrote: > > On Tue, Nov 11, 2014 at 02:48:25PM +0530, Anup Patel wrote: > >> Hi All, > >> > >> I have second thoughts about rebasing KVM PMU patches > >> to Marc's irq-forwarding patche

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-20 Thread Anup Patel
On Wed, Nov 19, 2014 at 8:59 PM, Christoffer Dall wrote: > On Tue, Nov 11, 2014 at 02:48:25PM +0530, Anup Patel wrote: >> Hi All, >> >> I have second thoughts about rebasing KVM PMU patches >> to Marc's irq-forwarding patches. >> >> The PMU IRQs (when virtualized by KVM) are not exactly >> forward

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-19 Thread Christoffer Dall
On Tue, Nov 11, 2014 at 02:48:25PM +0530, Anup Patel wrote: > Hi All, > > I have second thoughts about rebasing KVM PMU patches > to Marc's irq-forwarding patches. > > The PMU IRQs (when virtualized by KVM) are not exactly > forwarded IRQs because they are shared between Host > and Guest. > > Sc

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-17 Thread Anup Patel
On Tue, Nov 11, 2014 at 2:48 PM, Anup Patel wrote: > Hi All, > > I have second thoughts about rebasing KVM PMU patches > to Marc's irq-forwarding patches. > > The PMU IRQs (when virtualized by KVM) are not exactly > forwarded IRQs because they are shared between Host > and Guest. > > Scenario1 > -

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-11 Thread Anup Patel
Hi All, I have second thoughts about rebasing KVM PMU patches to Marc's irq-forwarding patches. The PMU IRQs (when virtualized by KVM) are not exactly forwarded IRQs because they are shared between Host and Guest. Scenario1 - We might have perf running on Host and no KVM guest runni

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-08 Thread Christoffer Dall
Yes, sounds good. I will review RFC v2 then. -Christoffer On Sat, Nov 8, 2014 at 10:36 AM, Anup Patel wrote: > Hi Christoffer, > > On Sat, Nov 8, 2014 at 1:55 AM, Christoffer Dall > wrote: >> Hi Anup, >> >> [This time to the new email] >> >> What are your plans in terms of follow-up on this on

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-08 Thread Anup Patel
Hi Christoffer, On Sat, Nov 8, 2014 at 1:55 AM, Christoffer Dall wrote: > Hi Anup, > > [This time to the new email] > > What are your plans in terms of follow-up on this one? Actually, I am already working on RFC v2. I will send-out RFC v2 sometime next time. This RFC v2 will be RFC v1 based up

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-07 Thread Christoffer Dall
Hi Anup, [This time to the new email] What are your plans in terms of follow-up on this one? Should we review these patches and reply to anup _at_ brainfaul.org or are you looking for someone else to pick them up? Thanks, -Christoffer On Tue, Aug 05, 2014 at 02:54:09PM +0530, Anup Patel wrote:

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-11-07 Thread Christoffer Dall
Hi Anup, What are your plans in terms of follow-up on this one? Should we review these patches and reply to anup _at_ brainfaul.org or are you looking for someone else to pick them up? Thanks, -Christoffer On Tue, Aug 05, 2014 at 02:54:09PM +0530, Anup Patel wrote: > This patchset enables PMU v

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-08-05 Thread Anup Patel
On Tue, Aug 5, 2014 at 2:54 PM, Anup Patel wrote: > This patchset enables PMU virtualization in KVM ARM64. The > Guest can now directly use PMU available on the host HW. > > The virtual PMU IRQ injection for Guest VCPUs is managed by > small piece of code shared between KVM ARM and KVM ARM64. The

Re: [RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-08-05 Thread Anup Patel
On 5 August 2014 15:02, Anup Patel wrote: > On Tue, Aug 5, 2014 at 2:54 PM, Anup Patel wrote: >> This patchset enables PMU virtualization in KVM ARM64. The >> Guest can now directly use PMU available on the host HW. >> >> The virtual PMU IRQ injection for Guest VCPUs is managed by >> small piece

[RFC PATCH 0/6] ARM64: KVM: PMU infrastructure support

2014-08-05 Thread Anup Patel
This patchset enables PMU virtualization in KVM ARM64. The Guest can now directly use PMU available on the host HW. The virtual PMU IRQ injection for Guest VCPUs is managed by small piece of code shared between KVM ARM and KVM ARM64. The virtual PMU IRQ number will be based on Guest machine model