Re: [Qemu-devel] [PATCH 3/3] net: make netclient re-entrant with refcnt

2013-03-04 Thread liu ping fan
On Mon, Mar 4, 2013 at 11:19 PM, Stefan Hajnoczi wrote: > On Sun, Mar 03, 2013 at 09:21:22PM +0800, Liu Ping Fan wrote: >> diff --git a/net/hub.c b/net/hub.c >> index 97c3ac3..ab4448e 100644 >> --- a/net/hub.c >> +++ b/net/hub.c >> @@ -36,6 +36,7 @@ typedef struct NetHubPort { >> } NetHubPort; >>

Re: [Qemu-devel] [PATCH 3/3] net: make netclient re-entrant with refcnt

2013-03-04 Thread Stefan Hajnoczi
On Sun, Mar 03, 2013 at 09:21:22PM +0800, Liu Ping Fan wrote: > diff --git a/net/hub.c b/net/hub.c > index 97c3ac3..ab4448e 100644 > --- a/net/hub.c > +++ b/net/hub.c > @@ -36,6 +36,7 @@ typedef struct NetHubPort { > } NetHubPort; > > struct NetHub { > +QemuMutex lock; Please document what

[Qemu-devel] [PATCH 3/3] net: make netclient re-entrant with refcnt

2013-03-03 Thread Liu Ping Fan
From: Liu Ping Fan With refcnt, NetClientState's caller can run agaist reclaimer. Signed-off-by: Liu Ping Fan --- hw/qdev-properties-system.c | 14 ++ include/net/net.h |3 +++ net/hub.c | 29 - net/net.c