Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-14 Thread Pawel Moll
On Thu, 2014-11-13 at 09:39 +, Shannon Zhao wrote: > When we use only virtio-mmio or vhost-net without irqfd, the device uses > qemu_set_irq(within qemu) > to inject interrupt and at the same time qemu update > "VIRTIO_MMIO_INTERRUPT_STATUS" to tell guest > driver whom this interrupt to. All

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-14 Thread Pawel Moll
On Thu, 2014-11-13 at 09:39 +, Shannon Zhao wrote: When we use only virtio-mmio or vhost-net without irqfd, the device uses qemu_set_irq(within qemu) to inject interrupt and at the same time qemu update VIRTIO_MMIO_INTERRUPT_STATUS to tell guest driver whom this interrupt to. All these

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-13 Thread Shannon Zhao
On 2014/11/13 2:33, Pawel Moll wrote: > On Wed, 2014-11-12 at 08:32 +, Shannon Zhao wrote: >> On 2014/11/11 23:11, Pawel Moll wrote: >>> On Tue, 2014-11-04 at 09:35 +, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some advanced features such as

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-13 Thread Shannon Zhao
On 2014/11/13 2:33, Pawel Moll wrote: On Wed, 2014-11-12 at 08:32 +, Shannon Zhao wrote: On 2014/11/11 23:11, Pawel Moll wrote: On Tue, 2014-11-04 at 09:35 +, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some advanced features such as vhost-net with irqfd

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-12 Thread Pawel Moll
On Wed, 2014-11-12 at 08:32 +, Shannon Zhao wrote: > On 2014/11/11 23:11, Pawel Moll wrote: > > On Tue, 2014-11-04 at 09:35 +, Shannon Zhao wrote: > >> As the current virtio-mmio only support single irq, > >> so some advanced features such as vhost-net with irqfd > >> are not supported.

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-12 Thread Shannon Zhao
On 2014/11/11 23:11, Pawel Moll wrote: > On Tue, 2014-11-04 at 09:35 +, Shannon Zhao wrote: >> As the current virtio-mmio only support single irq, >> so some advanced features such as vhost-net with irqfd >> are not supported. And the net performance is not >> the best without vhost-net and

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-12 Thread Shannon Zhao
On 2014/11/11 23:11, Pawel Moll wrote: On Tue, 2014-11-04 at 09:35 +, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some advanced features such as vhost-net with irqfd are not supported. And the net performance is not the best without vhost-net and irqfd

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-12 Thread Pawel Moll
On Wed, 2014-11-12 at 08:32 +, Shannon Zhao wrote: On 2014/11/11 23:11, Pawel Moll wrote: On Tue, 2014-11-04 at 09:35 +, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some advanced features such as vhost-net with irqfd are not supported. And the net

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-11 Thread Pawel Moll
On Tue, 2014-11-04 at 09:35 +, Shannon Zhao wrote: > As the current virtio-mmio only support single irq, > so some advanced features such as vhost-net with irqfd > are not supported. And the net performance is not > the best without vhost-net and irqfd supporting. Could you, please, help

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-11 Thread Pawel Moll
On Tue, 2014-11-04 at 09:35 +, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some advanced features such as vhost-net with irqfd are not supported. And the net performance is not the best without vhost-net and irqfd supporting. Could you, please, help

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-06 Thread Shannon Zhao
On 2014/11/6 19:09, Michael S. Tsirkin wrote: > On Thu, Nov 06, 2014 at 05:54:54PM +0800, Shannon Zhao wrote: >> On 2014/11/6 17:34, Michael S. Tsirkin wrote: >>> On Tue, Nov 04, 2014 at 05:35:12PM +0800, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-06 Thread Michael S. Tsirkin
On Thu, Nov 06, 2014 at 05:54:54PM +0800, Shannon Zhao wrote: > On 2014/11/6 17:34, Michael S. Tsirkin wrote: > > On Tue, Nov 04, 2014 at 05:35:12PM +0800, Shannon Zhao wrote: > >> As the current virtio-mmio only support single irq, > >> so some advanced features such as vhost-net with irqfd > >>

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-06 Thread Shannon Zhao
On 2014/11/6 17:34, Michael S. Tsirkin wrote: > On Tue, Nov 04, 2014 at 05:35:12PM +0800, Shannon Zhao wrote: >> As the current virtio-mmio only support single irq, >> so some advanced features such as vhost-net with irqfd >> are not supported. And the net performance is not >> the best without

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-06 Thread Michael S. Tsirkin
On Tue, Nov 04, 2014 at 05:35:12PM +0800, Shannon Zhao wrote: > As the current virtio-mmio only support single irq, > so some advanced features such as vhost-net with irqfd > are not supported. And the net performance is not > the best without vhost-net and irqfd supporting. > > This patch

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-06 Thread Shannon Zhao
On 2014/11/6 19:09, Michael S. Tsirkin wrote: On Thu, Nov 06, 2014 at 05:54:54PM +0800, Shannon Zhao wrote: On 2014/11/6 17:34, Michael S. Tsirkin wrote: On Tue, Nov 04, 2014 at 05:35:12PM +0800, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some advanced features

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-06 Thread Michael S. Tsirkin
On Tue, Nov 04, 2014 at 05:35:12PM +0800, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some advanced features such as vhost-net with irqfd are not supported. And the net performance is not the best without vhost-net and irqfd supporting. This patch support

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-06 Thread Shannon Zhao
On 2014/11/6 17:34, Michael S. Tsirkin wrote: On Tue, Nov 04, 2014 at 05:35:12PM +0800, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some advanced features such as vhost-net with irqfd are not supported. And the net performance is not the best without vhost-net

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-06 Thread Michael S. Tsirkin
On Thu, Nov 06, 2014 at 05:54:54PM +0800, Shannon Zhao wrote: On 2014/11/6 17:34, Michael S. Tsirkin wrote: On Tue, Nov 04, 2014 at 05:35:12PM +0800, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some advanced features such as vhost-net with irqfd are not

Re: [Qemu-devel] [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-05 Thread Shannon Zhao
On 2014/11/5 23:27, Joel Schopp wrote: > > On 11/05/2014 03:12 AM, Shannon Zhao wrote: >> Hi Rémy, >> >> On 2014/11/5 16:26, GAUGUEY Rémy 228890 wrote: >>> Hi Shannon, >>> Type of backend bandwith(GBytes/sec) virtio-net 0.66 vhost-net 1.49

Re: [Qemu-devel] [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-05 Thread Joel Schopp
On 11/05/2014 03:12 AM, Shannon Zhao wrote: > Hi Rémy, > > On 2014/11/5 16:26, GAUGUEY Rémy 228890 wrote: >> Hi Shannon, >> >>> Type of backend bandwith(GBytes/sec) >>> virtio-net 0.66 >>> vhost-net 1.49 >>> vhost-net with irqfd2.01 >>> >>> Test cmd:

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-05 Thread Shannon Zhao
ro.org; john.li...@huawei.com; > joel.sch...@amd.com; GAUGUEY Rémy 228890; qemu-de...@nongnu.org; > n.nikol...@virtualopensystems.com; virtualizat...@lists.linux-foundation.org; > peter.huangp...@huawei.com; hangaoh...@huawei.com > Objet : Re: [RFC PATCH] virtio-mmio: support for multiple irqs > >

RE: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-05 Thread GAUGUEY Rémy 228890
ngnu.org; n.nikol...@virtualopensystems.com; virtualizat...@lists.linux-foundation.org; peter.huangp...@huawei.com; hangaoh...@huawei.com Objet : Re: [RFC PATCH] virtio-mmio: support for multiple irqs On 2014/11/4 17:35, Shannon Zhao wrote: > As the current virtio-mmio only support single

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-05 Thread Shannon Zhao
On 2014/11/4 17:35, Shannon Zhao wrote: > As the current virtio-mmio only support single irq, > so some advanced features such as vhost-net with irqfd > are not supported. And the net performance is not > the best without vhost-net and irqfd supporting. > Hi Joel, Peter, Mst, Some virtio-net

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-05 Thread Shannon Zhao
On 2014/11/4 17:35, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some advanced features such as vhost-net with irqfd are not supported. And the net performance is not the best without vhost-net and irqfd supporting. Hi Joel, Peter, Mst, Some virtio-net with

RE: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-05 Thread GAUGUEY Rémy 228890
...@virtualopensystems.com; virtualizat...@lists.linux-foundation.org; peter.huangp...@huawei.com; hangaoh...@huawei.com Objet : Re: [RFC PATCH] virtio-mmio: support for multiple irqs On 2014/11/4 17:35, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some advanced features

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-05 Thread Shannon Zhao
-foundation.org; peter.huangp...@huawei.com; hangaoh...@huawei.com Objet : Re: [RFC PATCH] virtio-mmio: support for multiple irqs On 2014/11/4 17:35, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some advanced features such as vhost-net with irqfd are not supported

Re: [Qemu-devel] [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-05 Thread Joel Schopp
On 11/05/2014 03:12 AM, Shannon Zhao wrote: Hi Rémy, On 2014/11/5 16:26, GAUGUEY Rémy 228890 wrote: Hi Shannon, Type of backend bandwith(GBytes/sec) virtio-net 0.66 vhost-net 1.49 vhost-net with irqfd2.01 Test cmd: ./iperf -c 192.168.0.2 -P 1 -i

Re: [Qemu-devel] [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-05 Thread Shannon Zhao
On 2014/11/5 23:27, Joel Schopp wrote: On 11/05/2014 03:12 AM, Shannon Zhao wrote: Hi Rémy, On 2014/11/5 16:26, GAUGUEY Rémy 228890 wrote: Hi Shannon, Type of backend bandwith(GBytes/sec) virtio-net 0.66 vhost-net 1.49 vhost-net with irqfd2.01

[RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-04 Thread Shannon Zhao
As the current virtio-mmio only support single irq, so some advanced features such as vhost-net with irqfd are not supported. And the net performance is not the best without vhost-net and irqfd supporting. This patch support virtio-mmio to request multiple irqs like virtio-pci. With this patch

[RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-04 Thread Shannon Zhao
As the current virtio-mmio only support single irq, so some advanced features such as vhost-net with irqfd are not supported. And the net performance is not the best without vhost-net and irqfd supporting. This patch support virtio-mmio to request multiple irqs like virtio-pci. With this patch