From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nkj0f-0004UX-QH for qemu-devel@nongnu.org; Thu, 25 Feb 2010 14:04:29 -0500 Received: from [199.232.76.173] (port=58806 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nkj0f-0004U2-8c for qemu-devel@nongnu.org; Thu, 25 Feb 2010 14:04:29 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nkj0d-00006S-Et for qemu-devel@nongnu.org; Thu, 25 Feb 2010 14:04:28 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60589) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nkj0c-00006G-VG for qemu-devel@nongnu.org; Thu, 25 Feb 2010 14:04:27 -0500 From: Juan Quintela In-Reply-To: (Michael S. Tsirkin's message of "Thu, 25 Feb 2010 20:28:00 +0200") References: Date: Thu, 25 Feb 2010 20:04:21 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCHv2 09/12] 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. > +obj-y += vhost_net.o +obj-$(CONFIG_VHOST_NET) += vhost.o hy is vhost_net.o configured unconditionally? > --- a/configure > +++ b/configure > @@ -1498,6 +1498,23 @@ EOF > fi > This misses vhost_net var definition at the start of the file and --enable-vhost/--disable-vhost options. > ########################################## > +# test for vhost net > + > +if test "$kvm" != "no"; then > + cat > $TMPC < +#include > +int main(void) { return 0; } > +EOF > + if compile_prog "$kvm_cflags" "" ; then > + vhost_net=yes > + else > + vhost_net=no > + fi Indent please. > +else > + vhost_net=no > +fi > + > +########################################## > # pthread probe > PTHREADLIBS_LIST="-lpthread -lpthreadGC2" > > @@ -1968,6 +1985,7 @@ echo "fdt support $fdt" > echo "preadv support $preadv" > echo "fdatasync $fdatasync" > echo "uuid support $uuid" > +echo "vhost-net support $vhost_net" Otherwise this couldo not be there. > if test $sdl_too_old = "yes"; then > echo "-> Your SDL version is too old - please upgrade to have SDL support" > @@ -2492,6 +2510,9 @@ case "$target_arch2" in > if test "$kvm_para" = "yes"; then > echo "CONFIG_KVM_PARA=y" >> $config_target_mak > fi > + if test $vhost_net = "yes" ; then > + echo "CONFIG_VHOST_NET=y" >> $config_target_mak > + fi > fi > esac > echo "TARGET_PHYS_ADDR_BITS=$target_phys_bits" >> $config_target_mak > + for (;from < to; ++from) { > + vhost_log_chunk_t log; ..... > + ffsll(log) : ffs(log))) { if you defines vhost_log_chuck_t, you also define vhost_log_ffs() and you are done without this if. Later, Juan.