From nobody Mon Feb 9 20:10:21 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1579011112; cv=none; d=zohomail.com; s=zohoarc; b=TF7t/iGhhR88Kaf24CiJu0/ovecadr+b460u/uc010DHpfC/ZRNeBiC+GFqIFHp6ihnuTDQaB4e/3k1uKqvHpG0CfLEfSHT47ddKX+jAfxxkxBiHklXsac07vLxlaqeKhCCKLrCL/tlMoFw2mJ2EEHl55nnGQ9rVeh4f1s7t+s0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1579011112; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=i4DDI49kN7XSXGAfcKghDbO8KY6etjG0aejbOuVFbHs=; b=YvElIG80xhZjXhx2rZJsNhpH1l0xBr5KChhdAy5LCyNiEbebzqOQkzgvnJBausJDg2POUad5qm0E1YPk7rN9yQLm7CcyH1I+pEUZegIW8xX/fdh90Fah9zgkWER3w/CCaPK1dTqOghFksjsMJB4Djgu5eCXS375VLvzYPwu7AAE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1579011112327223.76227843890467; Tue, 14 Jan 2020 06:11:52 -0800 (PST) Received: from localhost ([::1]:40514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irMv8-00078L-Pr for importer@patchew.org; Tue, 14 Jan 2020 09:11:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54765) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irMsp-0003Zp-2N for qemu-devel@nongnu.org; Tue, 14 Jan 2020 09:09:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irMsn-0008H8-P7 for qemu-devel@nongnu.org; Tue, 14 Jan 2020 09:09:26 -0500 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:37329) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1irMsn-0008Fy-Jg for qemu-devel@nongnu.org; Tue, 14 Jan 2020 09:09:25 -0500 Received: by mail-pg1-x544.google.com with SMTP id q127so6452619pga.4 for ; Tue, 14 Jan 2020 06:09:25 -0800 (PST) Received: from localhost.localdomain ([175.124.145.172]) by smtp.googlemail.com with ESMTPSA id a17sm17264773pjv.6.2020.01.14.06.09.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2020 06:09:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=i4DDI49kN7XSXGAfcKghDbO8KY6etjG0aejbOuVFbHs=; b=MvGwpm/dt5xW9XylAFzJ//mw6CZnt0toHpWbkboAx5/DdKG2/gK79e4gytVbmyudv2 VsXyeqnXTOWSnDkOmkD7rqJh5OBBDSW7XzMdGwjUqkovLIUuHrjKq1+1BB0cWL7y28eO mdOnTOQuQXwwDWlMRdiqLSq6SzQkdqi7n/p/cQtQFeg8cGV+WR1DtvUwhUJDhKkfZe5z j+/u/p8Zk+orfLanaDlTA5C+kwUbYUtmoaUDR+WVilmp45/Y5eFRgyWpJTxA9bTrb1i6 oQX202q5mk3r0SRpSwD9DioXBi6SkJ5L9b3C6ME/0cKsAh+LtNycghc8iPvD2s2RQ6ov T/Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=i4DDI49kN7XSXGAfcKghDbO8KY6etjG0aejbOuVFbHs=; b=V5RjrgQyHYwOwcJ4fNJsNPquB/zuAEHjN2pcREOPds7gsHQ3KxOTF+bWSIqcxbbzEx +L5aVpdswNZ+u9cHvi2BYYDK0ErlCbI9/5ITlVhwggg8gEt8s3Ba+LGBWnIzBWNE/N+L Zrv179Y3GvpHD3P8WPnwqcfOUzr3tZ7O9qBiJskEE/ti1bS1bpRZTa5yIqfd7Mkkkhc+ i4nl04Ws7qYE2EL8lZLKDhYBPCBAd9VFk0w3QEyPX97HZCSUj+tnkh6G9X7ryoqz30eE gyKF2jm2zxek8JvWGn3yBsAiJVzc9Cjg2j89JvqFUYOzPMmPs4RtGw13Pr713l4W+8+p mELg== X-Gm-Message-State: APjAAAWUwkj4Uy9v60J323rlbfn15zHtVP2Y1FT1ifnEzeeCQTqq/UQx oADyZMp/ejMUBz2uwI0c9mPByBLVBEO8sg== X-Google-Smtp-Source: APXvYqxKO8lMaLrMYhqL0qp+2Fu9QHrhuWIAOkeOam/zqvv+lpp85RAvD81lUi5dXC0WMTXEs1swPA== X-Received: by 2002:a63:d705:: with SMTP id d5mr26766696pgg.24.1579010963348; Tue, 14 Jan 2020 06:09:23 -0800 (PST) From: Coiby Xu To: qemu-devel@nongnu.org Subject: [PATCH v2 5/5] building configuration files changes Date: Tue, 14 Jan 2020 22:06:20 +0800 Message-Id: <20200114140620.10385-6-coiby.xu@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200114140620.10385-1-coiby.xu@gmail.com> References: <20200114140620.10385-1-coiby.xu@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::544 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, bharatlkmlkvm@gmail.com, Coiby Xu , stefanha@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" libvhost-user depends on sys/poll.h, sys/socket.h and eventfd. Although Windows has the equivalent Winsock, it doesn't have eventfd. So only enable this feature on Linux. Signed-off-by: Coiby Xu --- Makefile | 1 + Makefile.objs | 2 +- Makefile.target | 1 + configure | 2 +- tests/Makefile.include | 5 ++++- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 6b5ad1121b..80c514f96b 100644 --- a/Makefile +++ b/Makefile @@ -558,6 +558,10 @@ qemu-img.o: qemu-img-cmds.h qemu-img$(EXESUF): qemu-img.o $(authz-obj-y) $(block-obj-y) $(crypto-obj-y= ) $(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS) qemu-nbd$(EXESUF): qemu-nbd.o $(authz-obj-y) $(block-obj-y) $(crypto-obj-y= ) $(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS) + +ifdef CONFIG_LINUX +qemu-vu$(EXESUF): qemu-vu.o blockdev-vu.o $(authz-obj-y) $(block-obj-y) $(= crypto-obj-y) $(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS) libvhost-user.a +endif qemu-io$(EXESUF): qemu-io.o $(authz-obj-y) $(block-obj-y) $(crypto-obj-y) = $(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS) qemu-bridge-helper$(EXESUF): qemu-bridge-helper.o $(COMMON_LDADDS) diff --git a/Makefile.objs b/Makefile.objs index 7c1e50f9d6..5404daca00 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -53,6 +53,7 @@ common-obj-$(CONFIG_WIN32) +=3D os-win32.o common-obj-$(CONFIG_POSIX) +=3D os-posix.o common-obj-$(CONFIG_LINUX) +=3D fsdev/ +common-obj-$(CONFIG_LINUX) +=3D blockdev-vu.o common-obj-y +=3D accel/ common-obj-y +=3D migration/ diff --git a/Makefile.target b/Makefile.target index 6e61f607b1..d5405976ce 100644 --- a/Makefile.target +++ b/Makefile.target @@ -159,6 +159,9 @@ obj-y +=3D monitor/ obj-y +=3D qapi/ obj-y +=3D memory.o obj-y +=3D memory_mapping.o +ifdef CONFIG_LINUX +obj-y +=3D ../contrib/libvhost-user/libvhost-user.o +endif obj-y +=3D migration/ram.o LIBS :=3D $(libs_softmmu) $(LIBS) diff --git a/configure b/configure index 0ce2c0354a..8ad4da57be 100755 --- a/configure +++ b/configure @@ -6169,6 +6169,9 @@ if test "$want_tools" =3D "yes" ; then if [ "$linux" =3D "yes" -o "$bsd" =3D "yes" -o "$solaris" =3D "yes" ] ; = then tools=3D"qemu-nbd\$(EXESUF) $tools" fi + if [ "$linux" =3D "yes" ] ; then + tools=3D"qemu-vu\$(EXESUF) $tools" + fi if [ "$ivshmem" =3D "yes" ]; then tools=3D"ivshmem-client\$(EXESUF) ivshmem-server\$(EXESUF) $tools" fi diff --git a/tests/Makefile.include b/tests/Makefile.include index 49e3b0d319..33bd48247b 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -746,6 +746,7 @@ qos-test-obj-y +=3D tests/libqos/virtio.o qos-test-obj-$(CONFIG_VIRTFS) +=3D tests/libqos/virtio-9p.o qos-test-obj-y +=3D tests/libqos/virtio-balloon.o qos-test-obj-y +=3D tests/libqos/virtio-blk.o +qos-test-obj-y +=3D tests/libqos/vhost-user-blk.o qos-test-obj-y +=3D tests/libqos/virtio-mmio.o qos-test-obj-y +=3D tests/libqos/virtio-net.o qos-test-obj-y +=3D tests/libqos/virtio-pci.o @@ -788,6 +789,7 @@ qos-test-obj-$(CONFIG_VHOST_NET_USER) +=3D tests/vhost-= user-test.o $(chardev-obj-y qos-test-obj-y +=3D tests/virtio-test.o qos-test-obj-$(CONFIG_VIRTFS) +=3D tests/virtio-9p-test.o qos-test-obj-y +=3D tests/virtio-blk-test.o +qos-test-obj-$(CONFIG_LINUX) +=3D tests/vhost-user-blk-test.o qos-test-obj-y +=3D tests/virtio-net-test.o qos-test-obj-y +=3D tests/virtio-rng-test.o qos-test-obj-y +=3D tests/virtio-scsi-test.o @@ -935,7 +937,8 @@ endef $(patsubst %, check-qtest-%, $(QTEST_TARGETS)): check-qtest-%: %-softmmu/a= ll $(check-qtest-y) $(call do_test_human,$(check-qtest-$*-y) $(check-qtest-generic-y), \ QTEST_QEMU_BINARY=3D$*-softmmu/qemu-system-$* \ - QTEST_QEMU_IMG=3Dqemu-img$(EXESUF)) + QTEST_QEMU_IMG=3D./qemu-img$(EXESUF) \ + QTEST_QEMU_VU_BINARY=3D./qemu-vu$(EXESUF)) check-unit: $(check-unit-y) $(call do_test_human, $^) -- 2.24.1