From nobody Thu May 2 00:27:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 14998599090601022.5588645044982; Wed, 12 Jul 2017 04:45:09 -0700 (PDT) Received: from localhost ([::1]:51965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVG4o-0000Z9-Tz for importer@patchew.org; Wed, 12 Jul 2017 07:45:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVE9z-0000TH-3f for qemu-devel@nongnu.org; Wed, 12 Jul 2017 05:42:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVE9u-0002p4-8i for qemu-devel@nongnu.org; Wed, 12 Jul 2017 05:42:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54930) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dVE9u-0002of-2C for qemu-devel@nongnu.org; Wed, 12 Jul 2017 05:42:14 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0BA6CC04D30A for ; Wed, 12 Jul 2017 09:42:13 +0000 (UTC) Received: from localhost (dhcp-192-218.str.redhat.com [10.33.192.218]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 519AD5D9CA; Wed, 12 Jul 2017 09:42:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 0BA6CC04D30A Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jfreimann@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 0BA6CC04D30A From: Jens Freimann To: qemu-devel@nongnu.org Date: Wed, 12 Jul 2017 11:41:47 +0200 Message-Id: <20170712094149.23069-2-jfreimann@redhat.com> In-Reply-To: <20170712094149.23069-1-jfreimann@redhat.com> References: <20170712094149.23069-1-jfreimann@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 12 Jul 2017 09:42:13 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 X-Mailman-Approved-At: Wed, 12 Jul 2017 07:42:21 -0400 Subject: [Qemu-devel] [PATCH RFC 1/3] tests/vhost-user-bridge: disable debug output by default X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marcandre.lureau@redhat.com, maxime.coquelin@redhat.com, victork@redhat.com, mst@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Jens Freimann vhost-user-bridge prints out a lot of information, including dumps of all transmitted data. When called from a testcase this output clutters the actual test results, so let's make the default no debug output. Signed-off-by: Jens Freimann Reviewed-by: Maxime Coquelin --- tests/vhost-user-bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vhost-user-bridge.c b/tests/vhost-user-bridge.c index 1e5b5ca..93d9535 100644 --- a/tests/vhost-user-bridge.c +++ b/tests/vhost-user-bridge.c @@ -34,7 +34,7 @@ #include "standard-headers/linux/virtio_net.h" #include "contrib/libvhost-user/libvhost-user.h" =20 -#define VHOST_USER_BRIDGE_DEBUG 1 +#define VHOST_USER_BRIDGE_DEBUG 0 =20 #define DPRINT(...) \ do { \ --=20 2.9.4 From nobody Thu May 2 00:27:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499860064860336.2617108844332; Wed, 12 Jul 2017 04:47:44 -0700 (PDT) Received: from localhost ([::1]:51981 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVG7K-0002rZ-Dr for importer@patchew.org; Wed, 12 Jul 2017 07:47:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVEA4-0000XV-08 for qemu-devel@nongnu.org; Wed, 12 Jul 2017 05:42:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVEA2-0002tf-RJ for qemu-devel@nongnu.org; Wed, 12 Jul 2017 05:42:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45826) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dVEA2-0002tD-HY for qemu-devel@nongnu.org; Wed, 12 Jul 2017 05:42:22 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 783F4C0587F2 for ; Wed, 12 Jul 2017 09:42:21 +0000 (UTC) Received: from localhost (dhcp-192-218.str.redhat.com [10.33.192.218]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 81448600C0; Wed, 12 Jul 2017 09:42:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 783F4C0587F2 Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jfreimann@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 783F4C0587F2 From: Jens Freimann To: qemu-devel@nongnu.org Date: Wed, 12 Jul 2017 11:41:48 +0200 Message-Id: <20170712094149.23069-3-jfreimann@redhat.com> In-Reply-To: <20170712094149.23069-1-jfreimann@redhat.com> References: <20170712094149.23069-1-jfreimann@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 12 Jul 2017 09:42:21 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 X-Mailman-Approved-At: Wed, 12 Jul 2017 07:42:21 -0400 Subject: [Qemu-devel] [PATCH RFC 2/3] tests/pxe-test: add testcase using vhost-user-bridge X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marcandre.lureau@redhat.com, maxime.coquelin@redhat.com, victork@redhat.com, mst@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Jens Freimann Add a test to pxe-test using the vhost-user interface.=20 Create a vhost-user-bridge process and connect it to qemu. Signed-off-by: Jens Freimann --- tests/Makefile.include | 4 +- tests/pxe-test.c | 106 +++++++++++++++++++++++++++++++++++++++++++++= +++- 2 files changed, 108 insertions(+), 2 deletions(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index 18cd06a..eccb27e 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -698,7 +698,8 @@ tests/boot-order-test$(EXESUF): tests/boot-order-test.o= $(libqos-obj-y) tests/boot-serial-test$(EXESUF): tests/boot-serial-test.o $(libqos-obj-y) tests/bios-tables-test$(EXESUF): tests/bios-tables-test.o \ tests/boot-sector.o tests/acpi-utils.o $(libqos-obj-y) -tests/pxe-test$(EXESUF): tests/pxe-test.o tests/boot-sector.o $(libqos-obj= -y) +tests/pxe-test$(EXESUF): tests/pxe-test.o tests/boot-sector.o \ + tests/vhost-user-bridge$(EXESUF) $(libqos-obj-y) tests/tmp105-test$(EXESUF): tests/tmp105-test.o $(libqos-omap-obj-y) tests/ds1338-test$(EXESUF): tests/ds1338-test.o $(libqos-imx-obj-y) tests/m25p80-test$(EXESUF): tests/m25p80-test.o @@ -826,6 +827,7 @@ $(patsubst %, check-qtest-%, $(QTEST_TARGETS)): check-q= test-%: $(check-qtest-y) $(if $(CONFIG_GCOV),@rm -f *.gcda */*.gcda */*/*.gcda */*/*/*.gcda,) $(call quiet-command,QTEST_QEMU_BINARY=3D$*-softmmu/qemu-system-$* \ QTEST_QEMU_IMG=3Dqemu-img$(EXESUF) \ + QTEST_VUBR_BINARY=3D./tests/vhost-user-bridge$(EXESUF) \ MALLOC_PERTURB_=3D$${MALLOC_PERTURB_:-$$((RANDOM % 255 + 1))} \ gtester $(GTESTER_OPTIONS) -m=3D$(SPEED) $(check-qtest-$*-y) $(check-qte= st-generic-y),"GTESTER","$@") $(if $(CONFIG_GCOV),@for f in $(gcov-files-$*-y) $(gcov-files-generic-y);= do \ diff --git a/tests/pxe-test.c b/tests/pxe-test.c index 34282d3..5a0d182 100644 --- a/tests/pxe-test.c +++ b/tests/pxe-test.c @@ -5,7 +5,8 @@ * * Authors: * Michael S. Tsirkin , - * Victor Kaplansky + * Victor Kaplansky , + * Jens Freimann * * This work is licensed under the terms of the GNU GPL, version 2 or late= r. * See the COPYING file in the top-level directory. @@ -13,13 +14,115 @@ =20 #include "qemu/osdep.h" #include +#include #include "qemu-common.h" #include "libqtest.h" #include "boot-sector.h" +#include =20 +#define LPORT 5555 +#define RPORT 4444 #define NETNAME "net0" +#define QEMU_CMD_MEM "--enable-kvm -m %d -object memory-backend-file,id= =3Dmem,size=3D%dM,"\ + "mem-path=3D%s,share=3Don -numa node,memdev=3Dmem = -mem-prealloc " +#define QEMU_CMD_CHR " -chardev socket,id=3D%s,path=3D%s" +#define QEMU_CMD_NETDEV " -device virtio-net-pci,netdev=3Dnet0 "\ + " -netdev vhost-user,id=3Dnet0,chardev=3D%s,vhostf= orce "\ + " -netdev user,id=3Dn0,tftp=3D./,bootfile=3D%s "\ + " -netdev socket,id=3Dn1,udp=3Dlocalhost:%d,locala= ddr=3Dlocalhost:%d" +#define QEMU_CMD_NET " -device virtio-net-pci,netdev=3Dn0 "\ + " -device virtio-net-pci,netdev=3Dn1 " + +#define QEMU_CMD QEMU_CMD_MEM QEMU_CMD_CHR \ + QEMU_CMD_NETDEV QEMU_CMD_NET + +#define HUGETLBFS_MAGIC 0x958458f6 +#define VUBR_SOCK "vubr.sock" +#define MEMSZ 1024 =20 static char disk[] =3D "tests/pxe-test-disk-XXXXXX"; +static const char *root; +static const char *tmpfs; +static const char *tmpfs2; + +static const char *init_hugepagefs(const char *path) +{ + struct statfs fs; + int ret; + + if (access(path, R_OK | W_OK | X_OK)) { + g_test_message("access on path (%s): %s\n", path, strerror(errno)); + return NULL; + } + + do { + ret =3D statfs(path, &fs); + } while (ret !=3D 0 && errno =3D=3D EINTR); + + if (ret !=3D 0) { + g_test_message("statfs on path (%s): %s\n", path, strerror(errno)); + return NULL; + } + + if (fs.f_type !=3D HUGETLBFS_MAGIC) { + g_test_message("Warning: path not on HugeTLBFS: %s\n", path); + return NULL; + } + + return path; +} + +static void test_pxe_vhost_user(void) +{ + char template[] =3D "/tmp/vhost-user-bridge-XXXXXX"; + char template2[] =3D "/tmp/hugepages-XXXXXX"; + gchar *vubr_args[] =3D {NULL, NULL, NULL, NULL}; + const char *hugefs; + GError *error =3D NULL; + char *vubr_binary; + char *qemu_args; + GPid vubr_pid; + + tmpfs =3D mkdtemp(template); + if (!tmpfs) { + g_test_message("mkdtemp on path(%s): %s\n", + template, strerror(errno)); + } + vubr_binary =3D getenv("QTEST_VUBR_BINARY"); + g_assert(vubr_binary); + vubr_args[0] =3D g_strdup_printf("%s", vubr_binary); + vubr_args[1] =3D g_strdup_printf("-u"); + vubr_args[2] =3D g_strdup_printf("%s/%s", tmpfs, VUBR_SOCK); + g_spawn_async(NULL, vubr_args, NULL, + G_SPAWN_SEARCH_PATH_FROM_ENVP | + G_SPAWN_SEARCH_PATH, + NULL, NULL, &vubr_pid, &error); + g_assert_no_error(error); + + hugefs =3D getenv("QTEST_HUGETLBFS_PATH"); + if (hugefs) { + root =3D init_hugepagefs(hugefs); + g_assert(root); + } else { + tmpfs2 =3D mkdtemp(template2); + g_assert(tmpfs2); + root =3D tmpfs2; + } + + qemu_args =3D g_strdup_printf(QEMU_CMD, MEMSZ, MEMSZ, (root), + "char0", vubr_args[2], "char0", disk, + RPORT, LPORT); + qtest_start(qemu_args); + boot_sector_test(); + qtest_quit(global_qtest); + g_free(qemu_args); + g_free(vubr_args[0]); + g_free(vubr_args[1]); + g_free(vubr_args[2]); + g_assert_cmpint (g_remove(g_strdup_printf("%s/%s", tmpfs,VUBR_SOCK)), + =3D=3D, 0); + g_assert_cmpint(rmdir(tmpfs), =3D=3D, 0); +} =20 static void test_pxe_one(const char *params, bool ipv6) { @@ -65,6 +168,7 @@ int main(int argc, char *argv[]) if (strcmp(arch, "i386") =3D=3D 0 || strcmp(arch, "x86_64") =3D=3D 0) { qtest_add_func("pxe/e1000", test_pxe_e1000); qtest_add_func("pxe/virtio", test_pxe_virtio_pci); + qtest_add_func("pxe/vhost-user", test_pxe_vhost_user); } else if (strcmp(arch, "ppc64") =3D=3D 0) { qtest_add_func("pxe/virtio", test_pxe_virtio_pci); qtest_add_func("pxe/spapr-vlan", test_pxe_spapr_vlan); --=20 2.9.4 From nobody Thu May 2 00:27:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499860120212561.5281240660867; Wed, 12 Jul 2017 04:48:40 -0700 (PDT) Received: from localhost ([::1]:51991 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVG8E-0003gn-W8 for importer@patchew.org; Wed, 12 Jul 2017 07:48:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVEAE-0000fV-7E for qemu-devel@nongnu.org; Wed, 12 Jul 2017 05:42:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVEAD-0002y7-F7 for qemu-devel@nongnu.org; Wed, 12 Jul 2017 05:42:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46202) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dVEAD-0002xr-8V for qemu-devel@nongnu.org; Wed, 12 Jul 2017 05:42:33 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 30E8AC0587C0 for ; Wed, 12 Jul 2017 09:42:32 +0000 (UTC) Received: from localhost (dhcp-192-218.str.redhat.com [10.33.192.218]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F000F5D6A6; Wed, 12 Jul 2017 09:42:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 30E8AC0587C0 Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jfreimann@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 30E8AC0587C0 From: Jens Freimann To: qemu-devel@nongnu.org Date: Wed, 12 Jul 2017 11:41:49 +0200 Message-Id: <20170712094149.23069-4-jfreimann@redhat.com> In-Reply-To: <20170712094149.23069-1-jfreimann@redhat.com> References: <20170712094149.23069-1-jfreimann@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 12 Jul 2017 09:42:32 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 X-Mailman-Approved-At: Wed, 12 Jul 2017 07:42:21 -0400 Subject: [Qemu-devel] [PATCH RFC 3/3] libvhost-user: quit when no more data received X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marcandre.lureau@redhat.com, maxime.coquelin@redhat.com, victork@redhat.com, mst@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Jens Freimann When recvmsg() returns a message size of zero and errno is ENOENT end processing of vhost-user messages. Without this we run into a vubr_panic() call and get PANIC: Error while recvmsg: No such file or directory Error while dispatching. Add a switch "quit" to the vhost user device and set true to stop processing messages. Signed-off-by: Jens Freimann --- contrib/libvhost-user/libvhost-user.c | 12 +++++++++++- contrib/libvhost-user/libvhost-user.h | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/contrib/libvhost-user/libvhost-user.c b/contrib/libvhost-user/= libvhost-user.c index 9efb9da..5538859 100644 --- a/contrib/libvhost-user/libvhost-user.c +++ b/contrib/libvhost-user/libvhost-user.c @@ -161,7 +161,10 @@ vu_message_read(VuDev *dev, int conn_fd, VhostUserMsg = *vmsg) rc =3D recvmsg(conn_fd, &msg, 0); } while (rc < 0 && (errno =3D=3D EINTR || errno =3D=3D EAGAIN)); =20 - if (rc <=3D 0) { + if (rc =3D=3D 0 && (errno =3D=3D ENOENT)) { + vmsg->size =3D 0; + dev->quit =3D true; + } else if (rc < 0) { vu_panic(dev, "Error while recvmsg: %s", strerror(errno)); return false; } @@ -755,6 +758,10 @@ vu_process_message(VuDev *dev, VhostUserMsg *vmsg) DPRINT("Flags: 0x%x\n", vmsg->flags); DPRINT("Size: %d\n", vmsg->size); =20 + if (dev->quit) { + return true; + } + if (vmsg->fd_num) { int i; DPRINT("Fds:"); @@ -822,6 +829,9 @@ vu_dispatch(VuDev *dev) bool success =3D false; =20 if (!vu_message_read(dev, dev->sock, &vmsg)) { + if (vmsg.size =3D=3D 0) { + success =3D true; + } goto end; } =20 diff --git a/contrib/libvhost-user/libvhost-user.h b/contrib/libvhost-user/= libvhost-user.h index 53ef222..c02215a 100644 --- a/contrib/libvhost-user/libvhost-user.h +++ b/contrib/libvhost-user/libvhost-user.h @@ -217,6 +217,7 @@ struct VuDev { uint64_t features; uint64_t protocol_features; bool broken; + bool quit; =20 /* @set_watch: add or update the given fd to the watch set, * call cb when condition is met */ --=20 2.9.4