From nobody Mon Feb 9 12:11:13 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1549899725388432.94713119959135; Mon, 11 Feb 2019 07:42:05 -0800 (PST) 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 50D0F58E2A; Mon, 11 Feb 2019 15:42:03 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1734B19C9C; Mon, 11 Feb 2019 15:42:03 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B5C3D18033CC; Mon, 11 Feb 2019 15:42:02 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x1BFfsCY015121 for ; Mon, 11 Feb 2019 10:41:54 -0500 Received: by smtp.corp.redhat.com (Postfix) id 2B9AB19741; Mon, 11 Feb 2019 15:41:54 +0000 (UTC) Received: from moe.brq.redhat.com (unknown [10.43.2.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id A469019C7D for ; Mon, 11 Feb 2019 15:41:53 +0000 (UTC) From: Michal Privoznik To: libvir-list@redhat.com Date: Mon, 11 Feb 2019 16:40:53 +0100 Message-Id: <020566cb5198190b9a83feb13f11811576d2ad55.1549899626.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 5/5] qemuhotplugtest: Test guestfwd attach and detach X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@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.39]); Mon, 11 Feb 2019 15:42:04 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Previous two commits demonstrate a hole in our test scenario. Fix that. Signed-off-by: Michal Privoznik Reviewed-by: John Ferlan --- tests/qemuhotplugtest.c | 6 ++ .../qemuhotplug-guestfwd.xml | 4 ++ .../qemuhotplug-base-live+guestfwd.xml | 55 +++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 tests/qemuhotplugtestdevices/qemuhotplug-guestfwd.xml create mode 100644 tests/qemuhotplugtestdomains/qemuhotplug-base-live+gues= tfwd.xml diff --git a/tests/qemuhotplugtest.c b/tests/qemuhotplugtest.c index 6d70d5897f..1491c214d0 100644 --- a/tests/qemuhotplugtest.c +++ b/tests/qemuhotplugtest.c @@ -796,6 +796,12 @@ mymain(void) DO_TEST_DETACH("base-live", "watchdog-user-alias-full", false, false, "device_del", QMP_DEVICE_DELETED("ua-UserWatchdog") QMP= _OK); =20 + DO_TEST_ATTACH("base-live", "guestfwd", false, true, + "chardev-add", QMP_OK, + "netdev_add", QMP_OK); + DO_TEST_DETACH("base-live", "guestfwd", false, false, + "netdev_del", QMP_OK); + #define DO_TEST_CPU_GROUP(prefix, vcpus, modernhp, expectfail) \ do { \ cpudata.test =3D prefix; \ diff --git a/tests/qemuhotplugtestdevices/qemuhotplug-guestfwd.xml b/tests/= qemuhotplugtestdevices/qemuhotplug-guestfwd.xml new file mode 100644 index 0000000000..c67dbdb8df --- /dev/null +++ b/tests/qemuhotplugtestdevices/qemuhotplug-guestfwd.xml @@ -0,0 +1,4 @@ + + + + diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+guestfwd.xm= l b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+guestfwd.xml new file mode 100644 index 0000000000..8d7294123b --- /dev/null +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+guestfwd.xml @@ -0,0 +1,55 @@ + + hotplug + d091ea82-29e6-2e34-3005-f02617b36e87 + 4194304 + 4194304 + 4 + + hvm + + + + + + + + + destroy + restart + restart + + /usr/bin/qemu-system-x86_64 + + +
+ + + +
+ + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + --=20 2.19.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list