From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NrbwS-00083b-Sf for qemu-devel@nongnu.org; Tue, 16 Mar 2010 14:56:38 -0400 Received: from [199.232.76.173] (port=43096 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NrbwR-00081g-HP for qemu-devel@nongnu.org; Tue, 16 Mar 2010 14:56:35 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NrbwO-0000RC-9X for qemu-devel@nongnu.org; Tue, 16 Mar 2010 14:56:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57860) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NrbwN-0000R8-Us for qemu-devel@nongnu.org; Tue, 16 Mar 2010 14:56:32 -0400 From: Juan Quintela In-Reply-To: (Michael S. Tsirkin's message of "Tue, 16 Mar 2010 19:11:16 +0200") References: Date: Tue, 16 Mar 2010 19:56:27 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCHv5 08/11] vhost: vhost net support List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: amit.shah@redhat.com, qemu-devel@nongnu.org, kraxel@redhat.com "Michael S. Tsirkin" wrote: > This adds vhost net device support in qemu. Will be tied to tap device > and virtio by following patches. Raw backend is currently missing, > will be worked on/submitted separately. > > Signed-off-by: Michael S. Tsirkin > --- > Makefile.target | 2 + > configure | 36 +++ > hw/vhost.c | 706 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > hw/vhost.h | 48 ++++ > hw/vhost_net.c | 198 ++++++++++++++++ > hw/vhost_net.h | 19 ++ > 6 files changed, 1009 insertions(+), 0 deletions(-) > create mode 100644 hw/vhost.c > create mode 100644 hw/vhost.h > create mode 100644 hw/vhost_net.c > create mode 100644 hw/vhost_net.h > > diff --git a/Makefile.target b/Makefile.target > index 004a703..ea5207c 100644 > --- a/Makefile.target > +++ b/Makefile.target > @@ -176,6 +176,8 @@ obj-y = vl.o async.o monitor.o pci.o pci_host.o pcie_host.o machine.o gdbstub.o > # need to fix this properly > obj-y += virtio-blk.o virtio-balloon.o virtio-net.o virtio-pci.o virtio-serial-bus.o > obj-y += event_notifier.o > +obj-y += vhost_net.o > +obj-$(CONFIG_VHOST_NET) += vhost.o > obj-y += rwhandler.o > obj-$(CONFIG_KVM) += kvm.o kvm-all.o > obj-$(CONFIG_ISA_MMIO) += isa_mmio.o > diff --git a/configure b/configure > index d728799..ebfc774 100755 > --- a/configure > +++ b/configure > @@ -87,6 +87,7 @@ libs_softmmu="" > libs_tools="" > audio_pt_int="" > audio_win_int="" > +audio_win_int="" > > # parse CC options first > for opt do Spurios bit. > @@ -651,6 +653,10 @@ for opt do > ;; > --enable-docs) docs="yes" > ;; > + --disable-vhost-net) vhost_net="no" > + ;; > + --enable-vhost-net) vhost_net="yes" > + ;; > *) echo "ERROR: unknown option $opt"; show_help="yes" > ;; > esac No help for both. Later, Juan.