From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTEYM-0006hb-Gm for qemu-devel@nongnu.org; Tue, 30 Oct 2012 12:20:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTEYF-0007Yv-8K for qemu-devel@nongnu.org; Tue, 30 Oct 2012 12:20:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11188) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTEYE-0007Yi-W4 for qemu-devel@nongnu.org; Tue, 30 Oct 2012 12:20:27 -0400 Date: Tue, 30 Oct 2012 18:22:45 +0200 From: "Michael S. Tsirkin" Message-ID: <20121030162245.GA7669@redhat.com> References: <20121030140450.GA27739@redhat.com> <20121030161645.GB16674@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121030161645.GB16674@stefanha-thinkpad.redhat.com> Subject: Re: [Qemu-devel] [PATCH] tap-win32: stubs to fix win32 build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Paolo Bonzini , Anthony Liguori , qemu-devel@nongnu.org On Tue, Oct 30, 2012 at 05:16:45PM +0100, Stefan Hajnoczi wrote: > On Tue, Oct 30, 2012 at 04:04:50PM +0200, Michael S. Tsirkin wrote: > > Add missing stubs to win32 to fix link failure. > > > > Signed-off-by: Michael S. Tsirkin > > Reported-by: Paolo Bonzini > > --- > > net/tap-win32.c | 10 ++++++++++ > > 1 file changed, 10 insertions(+) > > > > diff --git a/net/tap-win32.c b/net/tap-win32.c > > index 22dad3f..8d2d32b 100644 > > --- a/net/tap-win32.c > > +++ b/net/tap-win32.c > > @@ -752,3 +752,13 @@ struct vhost_net *tap_get_vhost_net(NetClientState *nc) > > { > > return NULL; > > } > > + > > +int tap_has_vnet_hdr_len(NetClientState *nc, int len) > > +{ > > + return 0; > > +} > > + > > +void tap_set_vnet_hdr_len(NetClientState *nc, int len) > > +{ > > + assert(0); > > +} > > How do we get link failures here on win32? The only object that needs > these functions is vhost_net.o when CONFIG_VHOST_NET is defined. > > Stefan No, virtio-net uses them too.