Re: [PATCH 15/17] KVM: PPC: Support irq routing and irqfd for in-kernel MPIC

2013-04-25 Thread Scott Wood
On 04/25/2013 04:58:51 AM, Alexander Graf wrote: On 19.04.2013, at 20:02, Scott Wood wrote: > On 04/19/2013 09:06:26 AM, Alexander Graf wrote: >> + if (notify_eoi != -1) { >> + spin_unlock_irq(&opp->lock); >> + kvm_notify_acked_irq(opp->kvm, 0, notify_eoi); >> +

Re: [PATCH 15/17] KVM: PPC: Support irq routing and irqfd for in-kernel MPIC

2013-04-25 Thread Alexander Graf
On 23.04.2013, at 08:38, Paul Mackerras wrote: > On Fri, Apr 19, 2013 at 04:06:26PM +0200, Alexander Graf wrote: >> Now that all the irq routing and irqfd pieces are generic, we can expose >> real irqchip support to all of KVM's internal helpers. >> >> This allows us to use irqfd with the in-ker

Re: [PATCH 15/17] KVM: PPC: Support irq routing and irqfd for in-kernel MPIC

2013-04-25 Thread Alexander Graf
On 19.04.2013, at 20:02, Scott Wood wrote: > On 04/19/2013 09:06:26 AM, Alexander Graf wrote: >> diff --git a/Documentation/virtual/kvm/devices/mpic.txt >> b/Documentation/virtual/kvm/devices/mpic.txt >> index ce98e32..dadc1e0 100644 >> --- a/Documentation/virtual/kvm/devices/mpic.txt >> +++ b/D

Re: [PATCH 15/17] KVM: PPC: Support irq routing and irqfd for in-kernel MPIC

2013-04-22 Thread Paul Mackerras
On Fri, Apr 19, 2013 at 04:06:26PM +0200, Alexander Graf wrote: > Now that all the irq routing and irqfd pieces are generic, we can expose > real irqchip support to all of KVM's internal helpers. > > This allows us to use irqfd with the in-kernel MPIC. [snip] > diff --git a/arch/powerpc/kvm/mpic.

Re: [PATCH 15/17] KVM: PPC: Support irq routing and irqfd for in-kernel MPIC

2013-04-22 Thread Scott Wood
On 04/18/2013 07:15:46 PM, Alexander Graf wrote: On 18.04.2013, at 23:39, Scott Wood wrote: > Do we really want any default routes? There's no platform notion of GSI > here, so how is userspace to know how the kernel set it up (or what GSIs > are free to be used for new routes) -- other th

Re: [PATCH 15/17] KVM: PPC: Support irq routing and irqfd for in-kernel MPIC

2013-04-19 Thread Scott Wood
On 04/19/2013 09:06:26 AM, Alexander Graf wrote: diff --git a/Documentation/virtual/kvm/devices/mpic.txt b/Documentation/virtual/kvm/devices/mpic.txt index ce98e32..dadc1e0 100644 --- a/Documentation/virtual/kvm/devices/mpic.txt +++ b/Documentation/virtual/kvm/devices/mpic.txt @@ -35,3 +35,14 @

[PATCH 15/17] KVM: PPC: Support irq routing and irqfd for in-kernel MPIC

2013-04-19 Thread Alexander Graf
Now that all the irq routing and irqfd pieces are generic, we can expose real irqchip support to all of KVM's internal helpers. This allows us to use irqfd with the in-kernel MPIC. Signed-off-by: Alexander Graf --- v2 -> v3: - make mpic pointer type safe - add wmb before setting global mp

Re: [PATCH 15/17] KVM: PPC: Support irq routing and irqfd for in-kernel MPIC

2013-04-18 Thread Scott Wood
On 04/18/2013 08:09:23 PM, Alexander Graf wrote: On 19.04.2013, at 02:50, Scott Wood wrote: > On 04/18/2013 07:15:46 PM, Alexander Graf wrote: >> On 18.04.2013, at 23:39, Scott Wood wrote: >> > On 04/18/2013 09:11:55 AM, Alexander Graf wrote: >> >> +static inline int irqchip_in_kernel(struct kv

Re: [PATCH 15/17] KVM: PPC: Support irq routing and irqfd for in-kernel MPIC

2013-04-18 Thread Alexander Graf
On 19.04.2013, at 02:50, Scott Wood wrote: > On 04/18/2013 07:15:46 PM, Alexander Graf wrote: >> On 18.04.2013, at 23:39, Scott Wood wrote: >> > On 04/18/2013 09:11:55 AM, Alexander Graf wrote: >> >> +static inline int irqchip_in_kernel(struct kvm *kvm) >> >> +{ >> >> + int ret = 0; >> >> + >> >>

Re: [PATCH 15/17] KVM: PPC: Support irq routing and irqfd for in-kernel MPIC

2013-04-18 Thread Scott Wood
On 04/18/2013 07:15:46 PM, Alexander Graf wrote: On 18.04.2013, at 23:39, Scott Wood wrote: > On 04/18/2013 09:11:55 AM, Alexander Graf wrote: >> +static inline int irqchip_in_kernel(struct kvm *kvm) >> +{ >> + int ret = 0; >> + >> +#ifdef CONFIG_KVM_MPIC >> + ret = ret || (kvm->arch.

Re: [PATCH 15/17] KVM: PPC: Support irq routing and irqfd for in-kernel MPIC

2013-04-18 Thread Alexander Graf
On 18.04.2013, at 23:39, Scott Wood wrote: > On 04/18/2013 09:11:55 AM, Alexander Graf wrote: >> Now that all the irq routing and irqfd pieces are generic, we can expose >> real irqchip support to all of KVM's internal helpers. >> This allows us to use irqfd with the in-kernel MPIC. >> Signed-off

Re: [PATCH 15/17] KVM: PPC: Support irq routing and irqfd for in-kernel MPIC

2013-04-18 Thread Scott Wood
On 04/18/2013 09:11:55 AM, Alexander Graf wrote: Now that all the irq routing and irqfd pieces are generic, we can expose real irqchip support to all of KVM's internal helpers. This allows us to use irqfd with the in-kernel MPIC. Signed-off-by: Alexander Graf --- arch/powerpc/include/asm/kv

[PATCH 15/17] KVM: PPC: Support irq routing and irqfd for in-kernel MPIC

2013-04-18 Thread Alexander Graf
Now that all the irq routing and irqfd pieces are generic, we can expose real irqchip support to all of KVM's internal helpers. This allows us to use irqfd with the in-kernel MPIC. Signed-off-by: Alexander Graf --- arch/powerpc/include/asm/kvm_host.h |7 ++ arch/powerpc/include/uapi/asm/kvm