Re: [net-next RFC V4 PATCH 0/4] Multiqueue virtio-net

2012-06-25 Thread Jason Wang
On 06/26/2012 02:01 AM, Shirley Ma wrote: Hello Jason, Good work. Do you have local guest to guest results? Thanks Shirley Hi Shirley: I would run tests to measure the performance and post here. Thanks ___ Virtualization mailing list Virtualization

Re: [net-next RFC V4 PATCH 0/4] Multiqueue virtio-net

2012-06-25 Thread Jason Wang
On 06/26/2012 01:49 AM, Sridhar Samudrala wrote: On 6/25/2012 2:16 AM, Jason Wang wrote: Hello All: This series is an update version of multiqueue virtio-net driver based on Krishna Kumar's work to let virtio-net use multiple rx/tx queues to do the packets reception and transmission. Please

Re: [net-next RFC V4 PATCH 3/4] virtio: introduce a method to get the irq of a specific virtqueue

2012-06-25 Thread Jason Wang
On 06/25/2012 06:14 PM, Michael S. Tsirkin wrote: On Mon, Jun 25, 2012 at 05:41:17PM +0800, Jason Wang wrote: Device specific irq optimizations such as irq affinity may be used by virtio drivers. So this patch introduce a new method to get the irq of a specific virtqueue. After this patch, virt

Re: [PATCH 1/4] mm: introduce compaction and migration for virtio ballooned pages

2012-06-25 Thread Rafael Aquini
On Mon, Jun 25, 2012 at 07:31:38PM -0400, Konrad Rzeszutek Wilk wrote: > On Mon, Jun 25, 2012 at 7:25 PM, Rafael Aquini wrote: > > This patch introduces helper functions that teach compaction and migration > > bits > > how to cope with pages which are part of a guest memory balloon, in order to >

Re: [PATCH 1/4] mm: introduce compaction and migration for virtio ballooned pages

2012-06-25 Thread Konrad Rzeszutek Wilk
On Mon, Jun 25, 2012 at 7:25 PM, Rafael Aquini wrote: > This patch introduces helper functions that teach compaction and migration > bits > how to cope with pages which are part of a guest memory balloon, in order to > make them movable by memory compaction procedures. > Should the names that ar

[PATCH 4/4] mm: add vm event counters for balloon pages compaction

2012-06-25 Thread Rafael Aquini
This patch is only for testing report purposes and shall be dropped in case of the rest of this patchset getting accepted for merging. Signed-off-by: Rafael Aquini --- drivers/virtio/virtio_balloon.c |1 + include/linux/vm_event_item.h |2 ++ mm/compaction.c |4 +++-

[PATCH 3/4] virtio_balloon: introduce migration primitives to balloon pages

2012-06-25 Thread Rafael Aquini
This patch makes balloon pages movable at allocation time and introduces the infrastructure needed to perform the balloon page migration operation. Signed-off-by: Rafael Aquini --- drivers/virtio/virtio_balloon.c | 96 ++- include/linux/virtio_balloon.h |

[PATCH 2/4] virtio_balloon: handle concurrent accesses to virtio_balloon struct elements

2012-06-25 Thread Rafael Aquini
This patch introduces access sychronization to critical elements of struct virtio_balloon, in order to allow the thread concurrency compaction/migration bits might ended up imposing to the balloon driver on several situations. Signed-off-by: Rafael Aquini --- drivers/virtio/virtio_balloon.c |

[PATCH 1/4] mm: introduce compaction and migration for virtio ballooned pages

2012-06-25 Thread Rafael Aquini
This patch introduces helper functions that teach compaction and migration bits how to cope with pages which are part of a guest memory balloon, in order to make them movable by memory compaction procedures. Signed-off-by: Rafael Aquini --- include/linux/mm.h | 17 + mm/compaction.

[PATCH 0/4] make balloon pages movable by compaction

2012-06-25 Thread Rafael Aquini
This patchset follows the main idea discussed at 2012 LSFMMS section: "Ballooning for transparent huge pages" -- http://lwn.net/Articles/490114/ to introduce the required changes to the virtio_balloon driver, as well as changes to the core compaction & migration bits, in order to allow memory ball

Re: [net-next RFC V4 PATCH 0/4] Multiqueue virtio-net

2012-06-25 Thread Shirley Ma
Hello Jason, Good work. Do you have local guest to guest results? Thanks Shirley ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization

Re: [net-next RFC V4 PATCH 0/4] Multiqueue virtio-net

2012-06-25 Thread Sridhar Samudrala
On 6/25/2012 2:16 AM, Jason Wang wrote: Hello All: This series is an update version of multiqueue virtio-net driver based on Krishna Kumar's work to let virtio-net use multiple rx/tx queues to do the packets reception and transmission. Please review and comments. Test Environment: - Intel(R) Xe

Re: [net-next RFC V4 PATCH 0/4] Multiqueue virtio-net

2012-06-25 Thread John Fastabend
On 6/25/2012 3:07 AM, Michael S. Tsirkin wrote: On Mon, Jun 25, 2012 at 05:16:48PM +0800, Jason Wang wrote: Hello All: This series is an update version of multiqueue virtio-net driver based on Krishna Kumar's work to let virtio-net use multiple rx/tx queues to do the packets reception and trans

Re: [net-next RFC V4 PATCH 3/4] virtio: introduce a method to get the irq of a specific virtqueue

2012-06-25 Thread Michael S. Tsirkin
On Mon, Jun 25, 2012 at 05:41:17PM +0800, Jason Wang wrote: > Device specific irq optimizations such as irq affinity may be used by virtio > drivers. So this patch introduce a new method to get the irq of a specific > virtqueue. > > After this patch, virtio device drivers could query the irq and d

[RFC V2 PATCH 4/4] virtio-net: add multiqueue support

2012-06-25 Thread Jason Wang
This patch let the virtio-net can transmit and recevie packets through multiuple VLANClientStates and abstract them as multiple virtqueues to guest. A new parameter 'queues' were introduced to specify the number of queue pairs. The main goal for vhost support is to let the multiqueue could be used

[RFC V2 PATCH 3/4] net: multiqueue support

2012-06-25 Thread Jason Wang
This patch adds the multiqueues support for emulated nics. Each VLANClientState pairs are now abstract as a queue instead of a nic, and multiple VLANClientState pointers were stored in the NICState. A queue_index were also introduced to let the emulated nics know which queue the packet were came fr

[RFC V2 PATCH 2/4] tap: multiqueue support

2012-06-25 Thread Jason Wang
This patch adds basic support for the multiple queue capable tap device. When multiqueue were enabled for a tap device, user can attach/detach multiple files (sockets) to the device through TUNATTACHQUEUE/TUNDETACHQUEUE. Two helpers tun_attach() and tun_deatch() were introduced to attach and detac

[RFC V2 PATCH 1/4] option: introduce qemu_get_opt_all()

2012-06-25 Thread Jason Wang
Sometimes, we need to pass option like -netdev tap,fd=100,fd=101,fd=102 which can not be properly parsed by qemu_find_opt() because it only returns the first matched option. So qemu_get_opt_all() were introduced to return an array of pointers which contains all matched option. Signed-off-by: Jason

[RFC V2 PATCH 0/4] Multiqueue support for tap and virtio-net/vhost

2012-06-25 Thread Jason Wang
Hello all: This seires is an update of last version of multiqueue support to add multiqueue capability to both tap and virtio-net. Some kinds of tap backends has (macvatp in linux) or would (tap) support multiqueue. In such kind of tap backend, each file descriptor of a tap is a qeueu and ioctls

Re: [net-next RFC V4 PATCH 0/4] Multiqueue virtio-net

2012-06-25 Thread Michael S. Tsirkin
On Mon, Jun 25, 2012 at 05:16:48PM +0800, Jason Wang wrote: > Hello All: > > This series is an update version of multiqueue virtio-net driver based on > Krishna Kumar's work to let virtio-net use multiple rx/tx queues to do the > packets reception and transmission. Please review and comments. > >

[net-next RFC V4 PATCH 4/4] virtio_net: multiqueue support

2012-06-25 Thread Jason Wang
This addes multiqueue support to virtio_net driver. This feature is negotiated through VIRTIO_NET_F_MULTIQUEUE. The driver expects the number of rx/tx queue paris is equal to the number of vcpus. To maximize the performance under this per-cpu rx/tx queue pairs, some optimization were introduced:

[net-next RFC V4 PATCH 3/4] virtio: introduce a method to get the irq of a specific virtqueue

2012-06-25 Thread Jason Wang
Device specific irq optimizations such as irq affinity may be used by virtio drivers. So this patch introduce a new method to get the irq of a specific virtqueue. After this patch, virtio device drivers could query the irq and do device specific optimizations. First user would be virtio-net. Sign

[net-next RFC V4 PATCH 2/4] virtio_ring: move queue_index to vring_virtqueue

2012-06-25 Thread Jason Wang
Instead of storing the queue index in virtio infos, this patch moves them to vring_virtqueue and introduces helpers to set and get the value. This would simplify the management and tracing. Signed-off-by: Jason Wang --- drivers/virtio/virtio_mmio.c |5 + drivers/virtio/virtio_pci.c |

[net-next RFC V4 PATCH 1/4] virtio_net: Introduce VIRTIO_NET_F_MULTIQUEUE

2012-06-25 Thread Jason Wang
From: Krishna Kumar Introduce VIRTIO_NET_F_MULTIQUEUE. Signed-off-by: Krishna Kumar Signed-off-by: Jason Wang --- include/linux/virtio_net.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/virtio_net.h b/include/linux/virtio_net.h index 2470f54..1bc7e30

[net-next RFC V4 PATCH 0/4] Multiqueue virtio-net

2012-06-25 Thread Jason Wang
Hello All: This series is an update version of multiqueue virtio-net driver based on Krishna Kumar's work to let virtio-net use multiple rx/tx queues to do the packets reception and transmission. Please review and comments. Test Environment: - Intel(R) Xeon(R) CPU E5620 @ 2.40GHz, 8 cores 2 numa

Re: [Qemu-devel] [PATCH 2/2] virtio-scsi: Implement hotplug support for virtio-scsi

2012-06-25 Thread Stefan Hajnoczi
On Mon, Jun 25, 2012 at 03:51:13AM -0400, m...@linux.vnet.ibm.com wrote: > > Quoting Stefan Hajnoczi : > > >On Wed, Jun 20, 2012 at 7:47 AM, Cong Meng wrote: > >>Implement the hotplug() and hot_unplug() interfaces in virtio-scsi, > >>by signal > >>the virtio_scsi.ko in guest kernel via event vir

Re: [Qemu-devel] [PATCH 2/2] virtio-scsi: Implement hotplug support for virtio-scsi

2012-06-25 Thread mc
Quoting Stefan Hajnoczi : On Wed, Jun 20, 2012 at 7:47 AM, Cong Meng wrote: Implement the hotplug() and hot_unplug() interfaces in virtio-scsi, by signal the virtio_scsi.ko in guest kernel via event virtual queue. The counterpart patch of virtio_scsi.ko will be sent soon in another thread.