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
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.
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
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
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
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
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
-
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
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
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/
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
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
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 |
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
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
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
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
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 +++---
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
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
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
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
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
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
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 ++
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
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 -
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_
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
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
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
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
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_
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 |
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
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
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
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
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 ++
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
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
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
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
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
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
-
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
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
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
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 -
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
@@
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(+
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
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
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
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
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
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
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.
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 @@
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
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
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/
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 @@
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
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)
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
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
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
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
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
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
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
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
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
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 ++
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
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
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
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
-
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
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
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
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
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 -
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
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 |
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/
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
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
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
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
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
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
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
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
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
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
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 --
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 +++
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 - 100 of 181 matches
Mail list logo