[Qemu-devel] [PATCH 1/2] slirp: remove duplicate definition

2012-02-15 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- slirp/if.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/slirp/if.c b/slirp/if.c index 2852396..8e0cac2 100644 --- a/slirp/if.c +++ b/slirp/if.c @@ -8,8 +8,6 @@ #include #include "qemu-timer.h" -#define ifs_init(i

[Qemu-devel] [PATCH 2/2] slirp: fix packet requeue issue in batchq

2012-02-15 Thread zwu . kernel
From: Zhi Yong Wu This patch fixes the slirp crash in current QEMU upstream. Signed-off-by: Zhi Yong Wu --- slirp/if.c | 37 ++--- slirp/mbuf.c |3 +-- 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/slirp/if.c b/slirp/if.c index 8e0cac2.

[Qemu-devel] [PATCH v2] slirp: fix packet requeue issue in batchq

2012-02-16 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- slirp/if.c | 19 +-- slirp/mbuf.c |3 +-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/slirp/if.c b/slirp/if.c index 8e0cac2..57350d5 100644 --- a/slirp/if.c +++ b/slirp/if.c @@ -22,6 +22,7 @@ ifs_remque

[Qemu-devel] [PATCH] socket: add the support for -netdev socket, listen

2012-02-16 Thread zwu . kernel
From: Zhi Yong Wu As you have known, QEMU upstream currently doesn't support for -netdev socket,listen; This patch makes it work now. Signed-off-by: Zhi Yong Wu --- net/socket.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/net/socket.c b/net/socket

[Qemu-devel] [PATCH v2] net: roll back qdev_prop_vlan

2012-06-18 Thread zwu . kernel
From: Zhi Yong Wu We're trying to preserve backward compatibility. This command-line break: x86_64-softmmu/qemu-system-x86_64 -net user,vlan=1 -device virtio-net-pci,vlan=1 Instead of dropping the qdev_prop_vlan completely the hw/qdev-properties.c code needs to call net/hub.h external function

[Qemu-devel] [PATCH v5 00/17] hub-based networking patches

2012-06-18 Thread zwu . kernel
From: Zhi Yong Wu All comments have been addressed and stefan has completed one more reviewing. Changelog from v4: 1.) roll back qdev_prop_vlan [stefanha] v4: 1.) refactor hub own flow control [paolo] 2.) refactor the output for monitor command "info network" [jan kiszka] v3: 1.) add the s

[Qemu-devel] [PATCH v5 01/17] net: Add a hub net client

2012-06-18 Thread zwu . kernel
From: Stefan Hajnoczi The vlan feature can be implemented in terms of hubs. By introducing a hub net client it becomes possible to remove the special case vlan code from net.c and push the vlan feature out of generic networking code. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu -

[Qemu-devel] [PATCH v5 03/17] net: Look up 'vlan' net clients using hubs

2012-06-18 Thread zwu . kernel
From: Stefan Hajnoczi Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- net.c | 28 +--- net/hub.c | 24 net/hub.h |2 ++ net/slirp.c |5 +++-- 4 files changed, 30 insertions(+), 29 deletions(-) diff --git a/ne

[Qemu-devel] [PATCH v5 07/17] net: Remove vlan code from net.c

2012-06-18 Thread zwu . kernel
From: Stefan Hajnoczi The vlan implementation in net.c has been replaced by hubs so we can remove the code. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- hw/xen_nic.c |1 - net.c| 108 -- net.h|1

[Qemu-devel] [PATCH v5 08/17] net: Remove VLANState

2012-06-18 Thread zwu . kernel
From: Stefan Hajnoczi VLANState is no longer used and can be removed. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- net.c | 127 ++--- net.h |8 net/socket.c |6 +- net/tap.c |6 +- net/

[Qemu-devel] [PATCH v5 12/17] net: Rename qemu_del_vlan_client() to qemu_del_net_client()

2012-06-18 Thread zwu . kernel
From: Stefan Hajnoczi Another step in moving the vlan feature out of net core. Users only deal with NetClientState and therefore qemu_del_vlan_client() should be named qemu_del_net_client(). Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- hw/e1000.c |2 +- hw/eepr

[Qemu-devel] [PATCH v5 04/17] hub: Check that hubs are configured correctly

2012-06-18 Thread zwu . kernel
From: Stefan Hajnoczi Checks can be performed to make sure that hubs have at least one NIC and one host device, warning the user if this is not the case. Configurations which do not meet this rule tend to be broken but just emit a warning. This patch preserves compatibility with the checks perfo

[Qemu-devel] [PATCH v5 11/17] net: Rename vc local variables to nc

2012-06-18 Thread zwu . kernel
From: Stefan Hajnoczi Now that VLANClientState has been renamed to NetClientState all 'vc' local variables should be 'nc'. Much of the code already used 'nc' but there are places where 'vc' needs to be renamed. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- hw/ne2000.h |

[Qemu-devel] [PATCH v5 13/17] net: Make "info network" output more readable info

2012-06-18 Thread zwu . kernel
From: Zhi Yong Wu Reviewed-by: Jan Kiszka Signed-off-by: Zhi Yong Wu --- net.c | 14 +- net.h |1 + net/hub.c | 23 +-- net/hub.h |1 + 4 files changed, 32 insertions(+), 7 deletions(-) diff --git a/net.c b/net.c index e7d49b3..d0be471 10

[Qemu-devel] [PATCH v5 16/17] hub: add the support for hub own flow control

2012-06-18 Thread zwu . kernel
From: Zhi Yong Wu Only when all other hub port's *peer* .can_receive() all return 1, the source hub port .can_receive() return 1. Reviewed-off-by: Paolo Bonzini Signed-off-by: Zhi Yong Wu --- net/hub.c | 27 --- 1 files changed, 24 insertions(+), 3 deletions(-) diff

[Qemu-devel] [PATCH 2/3] net: add the support for -netdev socket, listen

2012-06-18 Thread zwu . kernel
From: Zhi Yong Wu The -net socket,listen option does not work with the newer -netdev syntax: http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg01508.html This patch makes it work now. For the case where one vlan has multiple listenning sockets, the patch will also provide the support. S

[Qemu-devel] [PATCH 1/3] net: fix the coding style

2012-06-18 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net/socket.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/net/socket.c b/net/socket.c index dc5ba40..ba8583f 100644 --- a/net/socket.c +++ b/net/socket.c @@ -301,7 +301,9 @@ static NetSocketState *net_socket_fd_ini

[Qemu-devel] [PATCH 0/3] Some socket fix patches

2012-06-18 Thread zwu . kernel
From: Zhi Yong Wu The patchset is on top of hub-based networking patchset. Zhi Yong Wu (3): net: fix the coding style net: add the support for -netdev socket, listen net: complete NetSocketState lifecycle handling net/socket.c | 82 +++---

[Qemu-devel] [PATCH 3/3] net: complete NetSocketS?tate lifecycle handling

2012-06-18 Thread zwu . kernel
From: Zhi Yong Wu The NetSocketState struct contains two file descriptors: an active connection and a listen socket for new connections. It's important that we clean up after ourselves so these file descriptors are initialized to -1 when unused. This allows makes it possible to call cleanup fun

[Qemu-devel] [PATCH 3/3] net: complete NetSocketState lifecycle handling

2012-06-18 Thread zwu . kernel
From: Zhi Yong Wu The NetSocketState struct contains two file descriptors: an active connection and a listen socket for new connections. It's important that we clean up after ourselves so these file descriptors are initialized to -1 when unused. This allows makes it possible to call cleanup fun

[Qemu-devel] [PATCH v5 09/17] net: Rename non_vlan_clients to net_clients

2012-06-18 Thread zwu . kernel
From: Stefan Hajnoczi There is no longer a distinction between vlan clients and non-vlan clients in the net core. The net core only knows about point-to-point clients which are connected to a peer. It's time to rename the global list of net clients since it no longer refers to vlans at all. Si

[Qemu-devel] [PATCH v5 05/17] net: Drop vlan argument to qemu_new_net_client()

2012-06-18 Thread zwu . kernel
From: Stefan Hajnoczi Since hubs are now used to implement the 'vlan' feature and the vlan argument is always NULL, remove the argument entirely and update all net clients that use qemu_new_net_client(). Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- net.c | 27

[Qemu-devel] [PATCH v5 14/17] net: cleanup deliver/deliver_iov func pointers

2012-06-18 Thread zwu . kernel
From: Zhi Yong Wu Reviewed-by: Paolo Bonzini Signed-off-by: Zhi Yong Wu --- net.c | 35 +++ net.h | 11 +++ net/queue.c | 13 - net/queue.h | 17 ++--- 4 files changed, 28 insertions(+), 48 deletions(-) diff

[Qemu-devel] [PATCH v5 17/17] net: roll back qdev_prop_vlan

2012-06-18 Thread zwu . kernel
From: Zhi Yong Wu We're trying to preserve backward compatibility. This command-line break: x86_64-softmmu/qemu-system-x86_64 -net user,vlan=1 -device virtio-net-pci,vlan=1 Instead of dropping the qdev_prop_vlan completely the hw/qdev-properties.c code needs to call net/hub.h external function

[Qemu-devel] [PATCH v5 02/17] net: Use hubs for the vlan feature

2012-06-18 Thread zwu . kernel
From: Stefan Hajnoczi Stop using the special-case vlan code in net.c. Instead use the hub net client to implement the vlan feature. The next patch will remove vlan code from net.c completely. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- net.c | 38 ++

[Qemu-devel] [PATCH v5 15/17] net: determine if packets can be sent before net queue deliver packets

2012-06-18 Thread zwu . kernel
From: Zhi Yong Wu Reviewed-by: Paolo Bonzini Signed-off-by: Zhi Yong Wu --- net/queue.c |8 net/slirp.c |7 --- slirp/if.c |5 - slirp/libslirp.h |1 - 4 files changed, 4 insertions(+), 17 deletions(-) diff --git a/net/queue.c b/net/queue.c i

[Qemu-devel] [PATCH v5 06/17] net: Remove vlan qdev property

2012-06-18 Thread zwu . kernel
From: Stefan Hajnoczi The vlan feature is implemented using hubs and no longer uses special-purpose VLANState structs that are accessible as qdev properties. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- hw/qdev-properties.c | 72 -

[Qemu-devel] [PATCH 08/17] net: Remove VLANState

2012-06-19 Thread zwu . kernel
From: Stefan Hajnoczi VLANState is no longer used and can be removed. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- hw/dp8393x.c|1 - hw/exynos4_boards.c |2 +- hw/highbank.c |2 +- hw/integratorcp.c |2 +- hw/mcf5208.c|2 +- hw/mcf_

[Qemu-devel] [PATCH v2 1/3] net: fix the coding style

2012-06-20 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net/socket.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/net/socket.c b/net/socket.c index dc5ba40..ba8583f 100644 --- a/net/socket.c +++ b/net/socket.c @@ -301,7 +301,9 @@ static NetSocketState *net_socket_fd_ini

[Qemu-devel] [PATCH v2 2/3] net: add the support for -netdev socket, listen

2012-06-20 Thread zwu . kernel
From: Zhi Yong Wu The -net socket,listen option does not work with the newer -netdev syntax: http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg01508.html This patch makes it work now. For the case where one vlan has multiple listenning sockets, the patch will also provide the support. S

[Qemu-devel] [PATCH v2 0/3] Some socket fix patches

2012-06-20 Thread zwu . kernel
From: Zhi Yong Wu The patchset is on top of hub-based networking patchset. For this patchset, my git repo: g...@github.com:wuzhy/qemu.git for-anthony Zhi Yong Wu (3): net: fix the coding style net: add the support for -netdev socket, listen net: complete NetSocketState lifecycle handling

[Qemu-devel] [PATCH v2 3/3] net: complete NetSocketState lifecycle handling

2012-06-20 Thread zwu . kernel
From: Zhi Yong Wu The NetSocketState struct contains two file descriptors: an active connection and a listen socket for new connections. It's important that we clean up after ourselves so these file descriptors are initialized to -1 when unused. This allows makes it possible to call cleanup fun

[Qemu-devel] [PATCH v6 08/17] net: Remove VLANState

2012-06-20 Thread zwu . kernel
From: Stefan Hajnoczi VLANState is no longer used and can be removed. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- hw/dp8393x.c|1 - hw/exynos4_boards.c |2 +- hw/highbank.c |2 +- hw/integratorcp.c |2 +- hw/mcf5208.c|2 +- hw/mcf_

[Qemu-devel] [PATCH v6 11/17] net: Rename vc local variables to nc

2012-06-20 Thread zwu . kernel
From: Stefan Hajnoczi Now that VLANClientState has been renamed to NetClientState all 'vc' local variables should be 'nc'. Much of the code already used 'nc' but there are places where 'vc' needs to be renamed. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- hw/ne2000.h |

[Qemu-devel] [PATCH v6 04/17] hub: Check that hubs are configured correctly

2012-06-20 Thread zwu . kernel
From: Stefan Hajnoczi Checks can be performed to make sure that hubs have at least one NIC and one host device, warning the user if this is not the case. Configurations which do not meet this rule tend to be broken but just emit a warning. This patch preserves compatibility with the checks perfo

[Qemu-devel] [PATCH v6 16/17] hub: add the support for hub own flow control

2012-06-20 Thread zwu . kernel
From: Zhi Yong Wu Only when all other hub port's *peer* .can_receive() all return 1, the source hub port .can_receive() return 1. Reviewed-off-by: Paolo Bonzini Signed-off-by: Zhi Yong Wu --- net/hub.c | 27 --- 1 files changed, 24 insertions(+), 3 deletions(-) diff

[Qemu-devel] [PATCH v6 03/17] net: Look up 'vlan' net clients using hubs

2012-06-20 Thread zwu . kernel
From: Stefan Hajnoczi Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- net.c | 28 +--- net/hub.c | 24 net/hub.h |2 ++ net/slirp.c |5 +++-- 4 files changed, 30 insertions(+), 29 deletions(-) diff --git a/ne

[Qemu-devel] [PATCH v6 14/17] net: cleanup deliver/deliver_iov func pointers

2012-06-20 Thread zwu . kernel
From: Zhi Yong Wu Reviewed-by: Paolo Bonzini Signed-off-by: Zhi Yong Wu --- net.c | 35 +++ net.h | 11 +++ net/queue.c | 13 - net/queue.h | 17 ++--- 4 files changed, 28 insertions(+), 48 deletions(-) diff

[Qemu-devel] [PATCH v6 02/17] net: Use hubs for the vlan feature

2012-06-20 Thread zwu . kernel
From: Stefan Hajnoczi Stop using the special-case vlan code in net.c. Instead use the hub net client to implement the vlan feature. The next patch will remove vlan code from net.c completely. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- net.c | 38 ++

[Qemu-devel] [PATCH v6 12/17] net: Rename qemu_del_vlan_client() to qemu_del_net_client()

2012-06-20 Thread zwu . kernel
From: Stefan Hajnoczi Another step in moving the vlan feature out of net core. Users only deal with NetClientState and therefore qemu_del_vlan_client() should be named qemu_del_net_client(). Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- hw/e1000.c |2 +- hw/eepr

[Qemu-devel] [PATCH v6 07/17] net: Remove vlan code from net.c

2012-06-20 Thread zwu . kernel
From: Stefan Hajnoczi The vlan implementation in net.c has been replaced by hubs so we can remove the code. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- hw/xen_nic.c |1 - net.c| 108 -- net.h|1

[Qemu-devel] [PATCH v6 00/17] hub-based networking patchset

2012-06-20 Thread zwu . kernel
From: Zhi Yong Wu All comments have been addressed and stefan has completed one more reviewing. For this patchset, my git repo: g...@github.com:wuzhy/qemu.git for-anthony Changelog from v5: 1.) cleanup VLANState in other targets files [anthony] v5: 1.) roll back qdev_prop_vlan [stefanha] v

[Qemu-devel] [PATCH v6 13/17] net: Make "info network" output more readable info

2012-06-20 Thread zwu . kernel
From: Zhi Yong Wu Reviewed-by: Jan Kiszka Signed-off-by: Zhi Yong Wu --- net.c | 14 +- net.h |1 + net/hub.c | 23 +-- net/hub.h |1 + 4 files changed, 32 insertions(+), 7 deletions(-) diff --git a/net.c b/net.c index e7d49b3..d0be471 10

[Qemu-devel] [PATCH v6 17/17] net: roll back qdev_prop_vlan

2012-06-20 Thread zwu . kernel
From: Zhi Yong Wu We're trying to preserve backward compatibility. This command-line break: x86_64-softmmu/qemu-system-x86_64 -net user,vlan=1 -device virtio-net-pci,vlan=1 Instead of dropping the qdev_prop_vlan completely the hw/qdev-properties.c code needs to call net/hub.h external function

[Qemu-devel] [PATCH v6 01/17] net: Add a hub net client

2012-06-20 Thread zwu . kernel
From: Stefan Hajnoczi The vlan feature can be implemented in terms of hubs. By introducing a hub net client it becomes possible to remove the special case vlan code from net.c and push the vlan feature out of generic networking code. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu -

[Qemu-devel] [PATCH v6 05/17] net: Drop vlan argument to qemu_new_net_client()

2012-06-20 Thread zwu . kernel
From: Stefan Hajnoczi Since hubs are now used to implement the 'vlan' feature and the vlan argument is always NULL, remove the argument entirely and update all net clients that use qemu_new_net_client(). Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- net.c | 27

[Qemu-devel] [PATCH v6 09/17] net: Rename non_vlan_clients to net_clients

2012-06-20 Thread zwu . kernel
From: Stefan Hajnoczi There is no longer a distinction between vlan clients and non-vlan clients in the net core. The net core only knows about point-to-point clients which are connected to a peer. It's time to rename the global list of net clients since it no longer refers to vlans at all. Si

[Qemu-devel] [PATCH v6 15/17] net: determine if packets can be sent before net queue deliver packets

2012-06-20 Thread zwu . kernel
From: Zhi Yong Wu Reviewed-by: Paolo Bonzini Signed-off-by: Zhi Yong Wu --- net/queue.c |8 net/slirp.c |7 --- slirp/if.c |5 - slirp/libslirp.h |1 - 4 files changed, 4 insertions(+), 17 deletions(-) diff --git a/net/queue.c b/net/queue.c i

[Qemu-devel] [PATCH v6 06/17] net: Remove vlan qdev property

2012-06-20 Thread zwu . kernel
From: Stefan Hajnoczi The vlan feature is implemented using hubs and no longer uses special-purpose VLANState structs that are accessible as qdev properties. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- hw/qdev-properties.c | 72 -

[Qemu-devel] [PATCH] net, hub: fix the indent in the comments

2012-12-06 Thread zwu . kernel
From: Zhi Yong Wu Remove some redundant blanks in the comments of net_hub_id_for_client(). Signed-off-by: Zhi Yong Wu --- net/hub.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/hub.c b/net/hub.c index be41301..3b2d1ff 100644 --- a/net/hub.c +++ b/net/hub.c @@

[Qemu-devel] [PATCH] libcacard: fix compile error on glib2-2.12.3-4.el5

2014-09-26 Thread zwu . kernel
From: Zhi Yong Wu lt LINK libcacard.la CClibcacard/vscclient.o lt LINK vscclient /usr/bin/ld: -f may not be used without -shared collect2: ld returned 1 exit status make: *** [vscclient] Error 1 Signed-off-by: Zhi Yong Wu --- libcacard/Makefile |3 ++- 1 files changed, 2 insertions(+

[Qemu-devel] [PATCH] block: add the support to drain throttled requests

2012-03-12 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu [ Iterate until all block devices have processed all requests, add comments. - Paolo ] Signed-off-by: Paolo Bonzini --- block.c | 24 ++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git a/block.c b/block.c index

[Qemu-devel] [RFC 0/9] QOM: qomify -netdev

2012-03-25 Thread zwu . kernel
From: Zhi Yong Wu Sending the patchset is mainly intended to get some comments and void the wrong development direction. The patchset is used to qomify -netdev, but it introduce one infrastructure for host devices based on raw Class and Object, not qdev. So they are not related with DeviceCla

[Qemu-devel] [RFC 1/9] hostdev: introduce the infrastructure for host device model

2012-03-25 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- include/qemu/hostdev.h | 128 ++ qom/Makefile |2 +- qom/hostdev.c | 333 3 files changed, 462 insertions(+), 1 deletions(-) create mode 100644 include/qem

[Qemu-devel] [PATCH] net: qomify -netdev

2012-03-25 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net.c| 54 +- net.h|2 ++ net/slirp.c | 33 + net/slirp.h |1 + net/socket.c | 33 + net/socket.h

[Qemu-devel] [RFC 6/9] net: qomify -netdev user

2012-03-25 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net/slirp.c | 42 ++ net/slirp.h |7 +++ 2 files changed, 41 insertions(+), 8 deletions(-) diff --git a/net/slirp.c b/net/slirp.c index d3e56fc..62fea09 100644 --- a/net/slirp.c +++ b/net/slirp.c

[Qemu-devel] [RFC 4/9] net: adjust nic init API

2012-03-25 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/net.c b/net.c index ff8ddaf..22ed51b 100644 --- a/net.c +++ b/net.c @@ -549,15 +549,17 @@ int net_handle_fd_param(Monitor *mon, const char *param) return

[Qemu-devel] [PATCH] net: qomify -netdev

2012-03-25 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- cpu-common.h | 13 +- hw/qdev-monitor.c |4 ++- hw/qdev.h |2 + net.c | 62 +++- net.h |5 net/dump.c|6 - net/dump.

[Qemu-devel] [RFC 8/9] net: qomify -netdev vde

2012-03-25 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net/vde.c | 34 -- net/vde.h |4 ++-- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/net/vde.c b/net/vde.c index 8d9e1c6..c06716d 100644 --- a/net/vde.c +++ b/net/vde.c @@ -110,13 +110,17 @@

[Qemu-devel] [RFC 5/9] net: adjust dump init API

2012-03-25 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net/dump.c |8 ++-- net/dump.h |3 +-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/net/dump.c b/net/dump.c index 0f191d3..16e6efc 100644 --- a/net/dump.c +++ b/net/dump.c @@ -145,13 +145,17 @@ static int net_dump_in

[Qemu-devel] [RFC 3/9] net: adjust net common part for qomify -netdev

2012-03-25 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net.c | 108 +--- net.h |1 + vl.c | 12 +++--- 3 files changed, 109 insertions(+), 12 deletions(-) diff --git a/net.c b/net.c index 608c090..ff8ddaf 100644 --- a/net.c +++ b/ne

[Qemu-devel] [RFC 9/9] net: qomify -netdev tap & -netdev bridge

2012-03-25 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net/tap.c | 64 +--- net/tap.h |8 +++--- 2 files changed, 64 insertions(+), 8 deletions(-) diff --git a/net/tap.c b/net/tap.c index 65f45b8..81d022b 100644 --- a/net/tap.c +++ b/net/

[Qemu-devel] [RFC 2/9] net: introduce one net host device class

2012-03-25 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net.c | 35 +++ net.h | 27 +++ 2 files changed, 62 insertions(+), 0 deletions(-) diff --git a/net.c b/net.c index dd67d16..608c090 100644 --- a/net.c +++ b/net.c @@ -1231,3 +1231,38 @@

[Qemu-devel] [RFC 7/9] net: qomify -netdev socket

2012-03-25 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net/socket.c | 38 ++ net/socket.h |4 ++-- 2 files changed, 36 insertions(+), 6 deletions(-) diff --git a/net/socket.c b/net/socket.c index 55d9820..fe18e87 100644 --- a/net/socket.c +++ b/net/socket.c

[Qemu-devel] [PATCH 1/2] block: add the support to drain throttled requests

2012-03-26 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- block.c | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/block.c b/block.c index b88ee90..1fbf4dd 100644 --- a/block.c +++ b/block.c @@ -862,8 +862,22 @@ void bdrv_close_all(void) void bdrv_drain_all(void)

[Qemu-devel] [PATCH 2/2] block: disable I/O throttling on sync api

2012-03-26 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- block.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 1fbf4dd..5baf340 100644 --- a/block.c +++ b/block.c @@ -1477,6 +1477,12 @@ static int bdrv_rw_co(BlockDriverState *bs, int64_t sector_n

[Qemu-devel] [PATCH 1/2] block: add the support to drain throttled requests

2012-03-26 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Paolo Bonzini Signed-off-by: Zhi Yong Wu --- block.c | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/block.c b/block.c index b88ee90..1fbf4dd 100644 --- a/block.c +++ b/block.c @@ -862,8 +862,22 @@ void bdrv_close_all(vo

[Qemu-devel] [PATCH 2/2] block: disable I/O throttling on sync api

2012-03-26 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- block.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 1fbf4dd..5baf340 100644 --- a/block.c +++ b/block.c @@ -1477,6 +1477,12 @@ static int bdrv_rw_co(BlockDr

[Qemu-devel] [PATCH v2 2/2] block: disable I/O throttling on sync api

2012-03-27 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- block.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 1fbf4dd..f0b4f38 100644 --- a/block.c +++ b/block.c @@ -1477,6 +1477,12 @@ static int bdrv_rw_co(Bl

[Qemu-devel] [PATCH v3 2/2] block: disable I/O throttling on sync api

2012-03-30 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- block.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 1fbf4dd..6de6f89 100644 --- a/block.c +++ b/block.c @@ -1477,6 +1477,17 @@ static int b

[Qemu-devel] [PATCH v4 13/16] net: Make "info network" output more readable info

2012-05-25 Thread zwu . kernel
From: Zhi Yong Wu Reviewed-by: Jan Kiszka Signed-off-by: Zhi Yong Wu --- net.c | 18 ++ net.h | 12 net/hub.c | 23 +-- net/hub.h |1 + 4 files changed, 48 insertions(+), 6 deletions(-) diff --git a/net.c b/net.c index 61dc

[Qemu-devel] [PATCH v4 13/16] net: Make "info network" output more readable info

2012-05-25 Thread zwu . kernel
From: Zhi Yong Wu Reviewed-by: Jan Kiszka Signed-off-by: Zhi Yong Wu --- net.c | 18 ++ net.h |1 + net/hub.c | 23 +-- net/hub.h |1 + 4 files changed, 37 insertions(+), 6 deletions(-) diff --git a/net.c b/net.c index 61dc28d..ae0dee

[Qemu-devel] [PULL 1.2 00/16] hub-based networking patches

2012-06-03 Thread zwu . kernel
From: Zhi Yong Wu All comments from other guys were addressed. The following changes since commit a854972f8cdec0148087789d62777d8f7176933d: Update version to open the 1.2 development branch (Fri Jun 1 16:56:16 2012 +0800) are available in the git repository at: g...@github.com:wuzhy/qemu.g

[Qemu-devel] [PATCH v4 00/16] hub-based networking patches

2012-06-03 Thread zwu . kernel
From: Zhi Yong Wu All comments from other guys were addressed. The following changes since commit a854972f8cdec0148087789d62777d8f7176933d: Update version to open the 1.2 development branch (Fri Jun 1 16:56:16 2012 +0800) are available in the git repository at: g...@github.com:wuzhy/qemu.g

[Qemu-devel] [PATCH v4 02/16] net: Use hubs for the vlan feature

2012-06-03 Thread zwu . kernel
From: Stefan Hajnoczi Stop using the special-case vlan code in net.c. Instead use the hub net client to implement the vlan feature. The next patch will remove vlan code from net.c completely. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- net.c | 46 ++

[Qemu-devel] [PATCH v4 03/16] net: Look up 'vlan' net clients using hubs

2012-06-03 Thread zwu . kernel
From: Stefan Hajnoczi Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- net.c | 28 +--- net/hub.c | 24 net/hub.h |2 ++ net/slirp.c |5 +++-- 4 files changed, 30 insertions(+), 29 deletions(-) diff --git a/ne

[Qemu-devel] [PATCH v4 05/16] net: Drop vlan argument to qemu_new_net_client()

2012-06-03 Thread zwu . kernel
From: Stefan Hajnoczi Since hubs are now used to implement the 'vlan' feature and the vlan argument is always NULL, remove the argument entirely and update all net clients that use qemu_new_net_client(). Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- net.c | 27

[Qemu-devel] [PATCH v4 15/16] net: determine if packets can be sent before net queue deliver packets

2012-06-03 Thread zwu . kernel
From: Zhi Yong Wu Reviewed-by: Paolo Bonzini Signed-off-by: Zhi Yong Wu --- net/queue.c |8 net/slirp.c |7 --- slirp/if.c |5 - slirp/libslirp.h |1 - 4 files changed, 4 insertions(+), 17 deletions(-) diff --git a/net/queue.c b/net/queue.c i

[Qemu-devel] [PATCH v4 01/16] net: Add a hub net client

2012-06-03 Thread zwu . kernel
From: Stefan Hajnoczi The vlan feature can be implemented in terms of hubs. By introducing a hub net client it becomes possible to remove the special case vlan code from net.c and push the vlan feature out of generic networking code. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu -

[Qemu-devel] [PATCH v4 04/16] hub: Check that hubs are configured correctly

2012-06-03 Thread zwu . kernel
From: Stefan Hajnoczi Checks can be performed to make sure that hubs have at least one NIC and one host device, warning the user if this is not the case. Configurations which do not meet this rule tend to be broken but just emit a warning. This patch preserves compatibility with the checks perfo

[Qemu-devel] [PATCH v4 14/16] net: cleanup deliver/deliver_iov func pointers

2012-06-03 Thread zwu . kernel
From: Zhi Yong Wu Reviewed-by: Paolo Bonzini Signed-off-by: Zhi Yong Wu --- net.c | 35 +++ net.h | 11 +++ net/queue.c | 13 - net/queue.h | 17 ++--- 4 files changed, 28 insertions(+), 48 deletions(-) diff

[Qemu-devel] [PATCH v4 16/16] hub: add the support for hub own flow control

2012-06-03 Thread zwu . kernel
From: Zhi Yong Wu Only when all other hub port's *peer* .can_receive() all return 1, the source hub port .can_receive() return 1. Reviewed-off-by: Paolo Bonzini Signed-off-by: Zhi Yong Wu --- net/hub.c | 27 --- 1 files changed, 24 insertions(+), 3 deletions(-) diff

[Qemu-devel] [PATCH v4 07/16] net: Remove vlan code from net.c

2012-06-03 Thread zwu . kernel
From: Stefan Hajnoczi The vlan implementation in net.c has been replaced by hubs so we can remove the code. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- hw/xen_nic.c |1 - net.c| 108 -- net.h|1

[Qemu-devel] [PATCH v4 06/16] net: Remove vlan qdev property

2012-06-03 Thread zwu . kernel
From: Stefan Hajnoczi The vlan feature is implemented using hubs and no longer uses special-purpose VLANState structs that are accessible as qdev properties. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- hw/qdev-properties.c | 72 -

[Qemu-devel] [PATCH v4 09/16] net: Rename non_vlan_clients to net_clients

2012-06-03 Thread zwu . kernel
From: Stefan Hajnoczi There is no longer a distinction between vlan clients and non-vlan clients in the net core. The net core only knows about point-to-point clients which are connected to a peer. It's time to rename the global list of net clients since it no longer refers to vlans at all. Si

[Qemu-devel] [PATCH v4 11/16] net: Rename vc local variables to nc

2012-06-03 Thread zwu . kernel
From: Stefan Hajnoczi Now that VLANClientState has been renamed to NetClientState all 'vc' local variables should be 'nc'. Much of the code already used 'nc' but there are places where 'vc' needs to be renamed. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- hw/ne2000.h |

[Qemu-devel] [PATCH v4 08/16] net: Remove VLANState

2012-06-03 Thread zwu . kernel
From: Stefan Hajnoczi VLANState is no longer used and can be removed. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- net.c | 127 ++--- net.h |8 net/socket.c |6 +- net/tap.c |6 +- net/

[Qemu-devel] [PATCH v4 12/16] net: Rename qemu_del_vlan_client() to qemu_del_net_client()

2012-06-04 Thread zwu . kernel
From: Stefan Hajnoczi Another step in moving the vlan feature out of net core. Users only deal with NetClientState and therefore qemu_del_vlan_client() should be named qemu_del_net_client(). Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- hw/e1000.c |2 +- hw/eepr

[Qemu-devel] [PATCH v4 13/16] net: Make "info network" output more readable info

2012-06-04 Thread zwu . kernel
From: Zhi Yong Wu Reviewed-by: Jan Kiszka Signed-off-by: Zhi Yong Wu --- net.c | 14 +- net.h |1 + net/hub.c | 23 +-- net/hub.h |1 + 4 files changed, 32 insertions(+), 7 deletions(-) diff --git a/net.c b/net.c index 61dc28d..6cedc7a 10

[Qemu-devel] [PATCH v3] net: add the support for -netdev socket, listen

2012-06-04 Thread zwu . kernel
From: Zhi Yong Wu The -net socket,listen option does not work with the newer -netdev syntax: http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg01508.html This patch makes it work now. For the case where one vlan has multiple listenning sockets, the patch will also provide the support. S

[Qemu-devel] [PATCH v4] net: add the support for -netdev socket, listen

2012-06-06 Thread zwu . kernel
From: Zhi Yong Wu The -net socket,listen option does not work with the newer -netdev syntax: http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg01508.html This patch makes it work now. For the case where one vlan has multiple listenning sockets, the patch will also provide the support. S

[Qemu-devel] [PATCH v5 1/2] net: fix the coding style

2012-06-07 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net/socket.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/net/socket.c b/net/socket.c index fcd0a3c..7194345 100644 --- a/net/socket.c +++ b/net/socket.c @@ -301,7 +301,9 @@ static NetSocketState *net_socket_fd_init

[Qemu-devel] [PATCH v5 2/2] net: add the support for -netdev socket, listen

2012-06-07 Thread zwu . kernel
From: Zhi Yong Wu The -net socket,listen option does not work with the newer -netdev syntax: http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg01508.html This patch makes it work now. For the case where one vlan has multiple listenning sockets, the patch will also provide the support. S

[Qemu-devel] [PATCH v6 1/2] net: fix the coding style

2012-06-11 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- net/socket.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/net/socket.c b/net/socket.c index fcd0a3c..7194345 100644 --- a/net/socket.c +++ b/net/socket.c @@ -301,7 +301,9 @@ static NetSocketState *net_socket_fd_init

[Qemu-devel] [PATCH v6 2/2] net: add the support for -netdev socket, listen

2012-06-11 Thread zwu . kernel
From: Zhi Yong Wu The -net socket,listen option does not work with the newer -netdev syntax: http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg01508.html This patch makes it work now. For the case where one vlan has multiple listenning sockets, the patch will also provide the support. S

[Qemu-devel] [PATCH] net: roll back qdev_prop_vlan

2012-06-16 Thread zwu . kernel
From: Zhi Yong Wu We're trying to preserve backward compatibility. This command-line break: x86_64-softmmu/qemu-system-x86_64 -net user,vlan=1 -device virtio-net-pci,vlan=1 Instead of dropping the qdev_prop_vlan completely the hw/qdev-properties.c code needs to call net/hub.h external function

[Qemu-devel] [PATCH v4 2/2] block: disable I/O throttling on sync api

2012-04-02 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- block.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 1fbf4dd..058ef17 100644 --- a/block.c +++ b/block.c @@ -1477,6 +1477,17 @@ static int bdr

[Qemu-devel] [PATCH] vhost-net: adjust vhost_net.[c|h] -> vhost-net.[c|h]

2012-04-18 Thread zwu . kernel
From: Zhi Yong Wu Keep the consistent file naming style with other files Signed-off-by: Zhi Yong Wu --- Makefile.target |2 +- hw/vhost-net.c | 250 +++ hw/vhost-net.h | 20 + hw/vhost_net.c | 250 --

[Qemu-devel] [PATCH 02/16] vhost: Pass device path to vhost_dev_init()

2012-04-18 Thread zwu . kernel
From: Stefan Hajnoczi The path to /dev/vhost-net is currently hardcoded in vhost_dev_init(). This needs to be changed so that /dev/vhost-scsi can be used. Pass in the device path instead of hardcoding it. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- hw/vhost.c |5 +++

[Qemu-devel] [PATCH 05/16] virtio-scsi: Build virtio-scsi.o against vhost.o

2012-04-18 Thread zwu . kernel
From: Stefan Hajnoczi For the time being virtio-scsi.c will directly use vhost without a host device abstraction like virtio-net does. This patch builds virtio-scsi with vhost on KVM targets. Also make sure that virtio-pci.o can be built without virtio-scsi.o. Signed-off-by: Stefan Hajnoczi -

  1   2   >