Re: [Qemu-devel] [RFC PATCH v5 04/14] net: port vde onto GSource

2013-04-26 Thread Stefan Hajnoczi
On Fri, Apr 26, 2013 at 10:47:25AM +0800, Liu Ping Fan wrote: > +static gboolean vde_handler(gpointer data) > +{ > +EventGSource *nsrc = (EventGSource *)data; > + > +if (nsrc->gfd.revents & G_IO_IN) { The VDE file descriptor is a socket. Please use the full G_IO_IN | G_IO_HUP | G_IO_ERR s

[Qemu-devel] [RFC PATCH v5 04/14] net: port vde onto GSource

2013-04-25 Thread Liu Ping Fan
From: Liu Ping Fan Signed-off-by: Liu Ping Fan --- net/vde.c | 31 +-- 1 files changed, 29 insertions(+), 2 deletions(-) diff --git a/net/vde.c b/net/vde.c index 4dea32d..6dbde04 100644 --- a/net/vde.c +++ b/net/vde.c @@ -30,10 +30,12 @@ #include "qemu-common.h"