From nobody Tue Mar 24 01:00:43 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1773302605; cv=none; d=zohomail.com; s=zohoarc; b=abIuQrNTD3wSFPXXVS7g2tGAJ+Eku25CdmCveKQEmPU2+kmipqcu7SFgR7UvRVLTiThKrE6oJBawX/QwtOsPnzU13sDBOEUcFsrk5rZWJQ42MleY4r2dya4YX4jE6WXWl5TLSeVgQHhBfb3iLt4y+Ne44ka5PanrGQ9Li/lnOck= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1773302605; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id:Cc; bh=CIRFlIn08VPrRiE+82ClC+syOKUhY50enuA8NzASAwM=; b=ZryOs8UHtZVAWuq0AvaOXhx941V09H544V36k423x6wpLPi115I2sZq7alZ/MPok9zy1Ch4bAeLv2vPj6o2tVms1QLu/i4Fs0LrTEaKiZJNzNs/aYsQsZ1ZW493zLkWPB9Hz++CxVEbg+CnI41YeWz8H+sSxWNDb6b36etfCL3E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1773302605667424.5535437026283; Thu, 12 Mar 2026 01:03:25 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 993) id BD88F3F95A; Thu, 12 Mar 2026 04:03:24 -0400 (EDT) Received: from [172.19.199.12] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id D495B41C7F; Thu, 12 Mar 2026 03:58:00 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 993) id 3173340474; Thu, 12 Mar 2026 03:57:56 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 4C665418DE for ; Thu, 12 Mar 2026 03:57:28 -0400 (EDT) Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-63-O7ghzdmgNZuxKHtScLkhJA-1; Thu, 12 Mar 2026 03:57:26 -0400 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id EA9C91800372 for ; Thu, 12 Mar 2026 07:57:25 +0000 (UTC) Received: from moe (unknown [10.43.3.236]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 55F6C180049D for ; Thu, 12 Mar 2026 07:57:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HELO_MISC_IP,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1773302247; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CIRFlIn08VPrRiE+82ClC+syOKUhY50enuA8NzASAwM=; b=PXIpPMoLmSW/+2ErNhrAtPdW97seYhC93vYOJy/U1MUl2fl4E4x0n2qq+BYWfHlJPIkX3m /Nk2ooiMHjhSmYrIImw1Heo1N731HfOECecN2IJgWRj4GM3a970FxaqBCocUMjEUUy1LfJ Gj0PHykgzxjAMNEIOtEf0lon9bF/eE8= X-MC-Unique: O7ghzdmgNZuxKHtScLkhJA-1 X-Mimecast-MFC-AGG-ID: O7ghzdmgNZuxKHtScLkhJA_1773302246 To: devel@lists.libvirt.org Subject: [PATCH 5/5] qemuhotplug: Introduce interface-network-hostdev Date: Thu, 12 Mar 2026 08:57:14 +0100 Message-ID: <1d3ccf33263f9049bd6bcfb132b8e1fa0a9e25d6.1773302208.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: WX9VeZlgHqR21trn8xw6JM7WF-G8JN9mG6K2gaFfLs8_1773302246 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: 25VUN3354ERBFQZN5HSWBC56YMKF3BX5 X-Message-ID-Hash: 25VUN3354ERBFQZN5HSWBC56YMKF3BX5 X-MailFrom: mprivozn@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Michal Privoznik via Devel Reply-To: Michal Privoznik X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1773302608538154100 Content-Type: text/plain; charset="utf-8"; x-default="true" From: Michal Privoznik Inspired by commit of v12.1.0-37-g25662b3700. We already have a test case for , but what we are missing is where the network is of a . Apparently, we had a crasher there too. Signed-off-by: Michal Privoznik --- tests/qemuhotplugtest.c | 4 ++ .../qemuhotplug-interface-network-hostdev.xml | 4 ++ ...ug-base-live+interface-network-hostdev.xml | 63 +++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 tests/qemuhotplugtestdevices/qemuhotplug-interface-netw= ork-hostdev.xml create mode 100644 tests/qemuhotplugtestdomains/qemuhotplug-base-live+inte= rface-network-hostdev.xml diff --git a/tests/qemuhotplugtest.c b/tests/qemuhotplugtest.c index ae29f47c16..ea9d3243f8 100644 --- a/tests/qemuhotplugtest.c +++ b/tests/qemuhotplugtest.c @@ -724,6 +724,10 @@ mymain(void) "device_add", QMP_OK); DO_TEST_DETACH("x86_64", "base-live", "interface-hostdev", false, fals= e, "device_del", QMP_DEVICE_DELETED("hostdev0") QMP_OK); + DO_TEST_ATTACH("x86_64", "base-live", "interface-network-hostdev", fal= se, true, + "device_add", QMP_OK); + DO_TEST_DETACH("x86_64", "base-live", "interface-network-hostdev", fal= se, false, + "device_del", QMP_DEVICE_DELETED("hostdev0") QMP_OK); #endif DO_TEST_ATTACH("x86_64", "base-live", "interface-vdpa", false, true, "query-fdsets", "{\"return\":[{\"fdset-id\":99999}]}", diff --git a/tests/qemuhotplugtestdevices/qemuhotplug-interface-network-hos= tdev.xml b/tests/qemuhotplugtestdevices/qemuhotplug-interface-network-hostd= ev.xml new file mode 100644 index 0000000000..b4324126d8 --- /dev/null +++ b/tests/qemuhotplugtestdevices/qemuhotplug-interface-network-hostdev.xml @@ -0,0 +1,4 @@ + + + + diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-live+interface-n= etwork-hostdev.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+int= erface-network-hostdev.xml new file mode 100644 index 0000000000..6775fdc3f3 --- /dev/null +++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-live+interface-network-= hostdev.xml @@ -0,0 +1,63 @@ + + hotplug + d091ea82-29e6-2e34-3005-f02617b36e87 + 4194304 + 4194304 + 4 + + hvm + + + + + + + + + qemu64 + + + destroy + restart + restart + + /usr/bin/qemu-system-x86_64 + + +
+ + + +
+ + + +
+ + + + + + +
+ + + + + +
+ + +
+ + + + + + + +