Re: [Qemu-devel] [PATCH v2 1/5] net: spread hub on AioContexts

2013-03-13 Thread Paolo Bonzini
Il 13/03/2013 03:26, liu ping fan ha scritto: >>> >> +qemu_net_queue_append(port->nc.peer->send_queue, &port->nc, >>> >> +QEMU_NET_PACKET_FLAG_NONE, buf, len, NULL); >>> >> +event_notifier_set(&port->e); >> > >> > Why are the context and the EventNotifier

Re: [Qemu-devel] [PATCH v2 1/5] net: spread hub on AioContexts

2013-03-12 Thread liu ping fan
On Tue, Mar 12, 2013 at 4:50 PM, Paolo Bonzini wrote: > Il 07/03/2013 03:53, Liu Ping Fan ha scritto: >> From: Liu Ping Fan >> >> Forward packet to other hub ports by their AioContext. >> >> Signed-off-by: Liu Ping Fan >> --- >> hw/qdev-properties-system.c |1 + >> include/block/aio.h

Re: [Qemu-devel] [PATCH v2 1/5] net: spread hub on AioContexts

2013-03-12 Thread Paolo Bonzini
Il 07/03/2013 03:53, Liu Ping Fan ha scritto: > From: Liu Ping Fan > > Forward packet to other hub ports by their AioContext. > > Signed-off-by: Liu Ping Fan > --- > hw/qdev-properties-system.c |1 + > include/block/aio.h |1 + > include/net/net.h |5 + > incl