Re: [Qemu-devel] [PATCH 1/2] kvm irqfd: support msimessage to irq translation in PHB

2013-08-27 Thread Alexey Kardashevskiy
On 08/27/2013 08:32 PM, Benjamin Herrenschmidt wrote: > On Tue, 2013-08-27 at 13:26 +0300, Michael S. Tsirkin wrote: >> e would end up with something like >>> >>> diff --git a/kvm-all.c b/kvm-all.c >>> index 716860f..ca3251e 100644 >>> --- a/kvm-all.c >>> +++ b/kvm-all.c >>> @@ -1190,6 +1190,10 @@

Re: [Qemu-devel] [PATCH 1/2] kvm irqfd: support msimessage to irq translation in PHB

2013-08-27 Thread Alexander Graf
On 27.08.2013, at 12:32, Benjamin Herrenschmidt wrote: > On Tue, 2013-08-27 at 13:26 +0300, Michael S. Tsirkin wrote: >> e would end up with something like >>> >>> diff --git a/kvm-all.c b/kvm-all.c >>> index 716860f..ca3251e 100644 >>> --- a/kvm-all.c >>> +++ b/kvm-all.c >>> @@ -1190,6 +1190,10

Re: [Qemu-devel] [PATCH 1/2] kvm irqfd: support msimessage to irq translation in PHB

2013-08-27 Thread Benjamin Herrenschmidt
On Tue, 2013-08-27 at 13:26 +0300, Michael S. Tsirkin wrote: > e would end up with something like > > > > diff --git a/kvm-all.c b/kvm-all.c > > index 716860f..ca3251e 100644 > > --- a/kvm-all.c > > +++ b/kvm-all.c > > @@ -1190,6 +1190,10 @@ int kvm_irqchip_add_msi_route(KVMState *s, > > MSIMessa

Re: [Qemu-devel] [PATCH 1/2] kvm irqfd: support msimessage to irq translation in PHB

2013-08-27 Thread Michael S. Tsirkin
On Tue, Aug 27, 2013 at 12:06:49PM +0200, Alexander Graf wrote: > > On 23.08.2013, at 06:29, Alexey Kardashevskiy wrote: > > > On 08/19/2013 07:01 PM, Michael S. Tsirkin wrote: > >> On Mon, Aug 19, 2013 at 06:10:01PM +1000, Alexey Kardashevskiy wrote: > >>> On 08/19/2013 05:54 PM, Michael S. Tsir

Re: [Qemu-devel] [PATCH 1/2] kvm irqfd: support msimessage to irq translation in PHB

2013-08-27 Thread Alexander Graf
On 23.08.2013, at 06:29, Alexey Kardashevskiy wrote: > On 08/19/2013 07:01 PM, Michael S. Tsirkin wrote: >> On Mon, Aug 19, 2013 at 06:10:01PM +1000, Alexey Kardashevskiy wrote: >>> On 08/19/2013 05:54 PM, Michael S. Tsirkin wrote: On Mon, Aug 19, 2013 at 05:44:04PM +1000, Alexey Kardashevsk

Re: [Qemu-devel] [PATCH 1/2] kvm irqfd: support msimessage to irq translation in PHB

2013-08-22 Thread Alexey Kardashevskiy
On 08/19/2013 07:01 PM, Michael S. Tsirkin wrote: > On Mon, Aug 19, 2013 at 06:10:01PM +1000, Alexey Kardashevskiy wrote: >> On 08/19/2013 05:54 PM, Michael S. Tsirkin wrote: >>> On Mon, Aug 19, 2013 at 05:44:04PM +1000, Alexey Kardashevskiy wrote: On 08/19/2013 05:35 PM, Michael S. Tsirkin wr

Re: [Qemu-devel] [PATCH 1/2] kvm irqfd: support msimessage to irq translation in PHB

2013-08-19 Thread Michael S. Tsirkin
On Mon, Aug 19, 2013 at 06:10:01PM +1000, Alexey Kardashevskiy wrote: > On 08/19/2013 05:54 PM, Michael S. Tsirkin wrote: > > On Mon, Aug 19, 2013 at 05:44:04PM +1000, Alexey Kardashevskiy wrote: > >> On 08/19/2013 05:35 PM, Michael S. Tsirkin wrote: > >>> On Wed, Aug 07, 2013 at 06:51:32PM +1000,

Re: [Qemu-devel] [PATCH 1/2] kvm irqfd: support msimessage to irq translation in PHB

2013-08-19 Thread Alexey Kardashevskiy
On 08/19/2013 05:54 PM, Michael S. Tsirkin wrote: > On Mon, Aug 19, 2013 at 05:44:04PM +1000, Alexey Kardashevskiy wrote: >> On 08/19/2013 05:35 PM, Michael S. Tsirkin wrote: >>> On Wed, Aug 07, 2013 at 06:51:32PM +1000, Alexey Kardashevskiy wrote: On PPC64 systems MSI Messages are translated

Re: [Qemu-devel] [PATCH 1/2] kvm irqfd: support msimessage to irq translation in PHB

2013-08-19 Thread Michael S. Tsirkin
On Mon, Aug 19, 2013 at 05:44:04PM +1000, Alexey Kardashevskiy wrote: > On 08/19/2013 05:35 PM, Michael S. Tsirkin wrote: > > On Wed, Aug 07, 2013 at 06:51:32PM +1000, Alexey Kardashevskiy wrote: > >> On PPC64 systems MSI Messages are translated to system IRQ in a PCI > >> host bridge. This is alre

Re: [Qemu-devel] [PATCH 1/2] kvm irqfd: support msimessage to irq translation in PHB

2013-08-19 Thread Alexey Kardashevskiy
On 08/19/2013 05:35 PM, Michael S. Tsirkin wrote: > On Wed, Aug 07, 2013 at 06:51:32PM +1000, Alexey Kardashevskiy wrote: >> On PPC64 systems MSI Messages are translated to system IRQ in a PCI >> host bridge. This is already supported for emulated MSI/MSIX but >> not for irqfd where the current QEM

Re: [Qemu-devel] [PATCH 1/2] kvm irqfd: support msimessage to irq translation in PHB

2013-08-19 Thread Michael S. Tsirkin
On Wed, Aug 07, 2013 at 06:51:32PM +1000, Alexey Kardashevskiy wrote: > On PPC64 systems MSI Messages are translated to system IRQ in a PCI > host bridge. This is already supported for emulated MSI/MSIX but > not for irqfd where the current QEMU allocates IRQ numbers from > irqchip and maps MSIMess

[Qemu-devel] [PATCH 1/2] kvm irqfd: support msimessage to irq translation in PHB

2013-08-07 Thread Alexey Kardashevskiy
On PPC64 systems MSI Messages are translated to system IRQ in a PCI host bridge. This is already supported for emulated MSI/MSIX but not for irqfd where the current QEMU allocates IRQ numbers from irqchip and maps MSIMessages to those IRQ in the host kernel. The patch extends irqfd support in orde