From nobody Mon Feb 9 17:08:13 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=1770403037; cv=none; d=zohomail.com; s=zohoarc; b=gN3t5NP+KHWUDEiXu9uSQaP0WvVeDmFcpoIJnhyh/XErQJm56aK7bRJ5b8T4b9lC8GccxReNpv0/+XURpvkNLXNdGXK8xYPy6tQr0oXF1eRslevuLlOf1RXxTc2OZn1qiyUuzSJ8rrbvOL+fFAvgXHN1OWP8EGQmRv/eG0KFcnQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770403037; 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=OzoNN6qw3JRCp4Xra72M1G/9i6Lsq8UVOav5rUAz6YI=; b=RAigpzAsLsBE56tlSU059qG1igXnsDqwFli53R9yh3uWsDSiYT01ZQkzE0ZpqiB6H6Vj94bnQ3hhaAcBgms1ZZbIAsak0CBbnoWYoPK88ekdtjjujdcBgdlD8LP7Y1q3FMewFX1BnkuNaOVuUab3S69KwHrII/Mpt4cImf1wwlw= 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 1770403037821376.30781761153594; Fri, 6 Feb 2026 10:37:17 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id EDB3D41AB2; Fri, 6 Feb 2026 13:37:16 -0500 (EST) Received: from [172.19.199.6] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id B6BAE43DC2; Fri, 6 Feb 2026 13:33:44 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id C22AA417D0; Fri, 6 Feb 2026 13:33:31 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 A4C0441A42 for ; Fri, 6 Feb 2026 13:28:16 -0500 (EST) 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-148-uSRb_lNjOKaly_ciCquqPA-1; Fri, 06 Feb 2026 13:28:13 -0500 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (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 2D78218003F5 for ; Fri, 6 Feb 2026 18:28:13 +0000 (UTC) Received: from speedmetal.lan (unknown [10.45.242.3]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5C7451800465 for ; Fri, 6 Feb 2026 18:28:12 +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=-5.0 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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=1770402496; 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=OzoNN6qw3JRCp4Xra72M1G/9i6Lsq8UVOav5rUAz6YI=; b=WENwWKOSgc6uaEpVEB0fi43bGARVgDkbObeK/fAoJxQKl1V68KZ06HeREhFTYnsf/mP+SD pzYdNmYey9eJs240HG/BaT+d7ICpTbaUgO71tlX4VBp+dPiHIjpO00nZHaIfPNVGfQrYRw QfQ0Xp8Ts5VmVlAIrmKfrDb9fvU8ijM= X-MC-Unique: uSRb_lNjOKaly_ciCquqPA-1 X-Mimecast-MFC-AGG-ID: uSRb_lNjOKaly_ciCquqPA_1770402493 To: devel@lists.libvirt.org Subject: [PATCH 3/5] qemuxmlconftest: Add version-locked test cases for the use of -netdev tap with fd/vhostfd Date: Fri, 6 Feb 2026 19:28:05 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: ffj2C-1GpSTRGeL2WwpgNNHgql-NquU9G7FiYuUUcyA_1770402493 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: HGBSPLCD6BHRGFPMAR563INFC4DWQ5VG X-Message-ID-Hash: HGBSPLCD6BHRGFPMAR563INFC4DWQ5VG X-MailFrom: pkrempa@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: Peter Krempa via Devel Reply-To: Peter Krempa X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1770403038359158500 Content-Type: text/plain; charset="utf-8" From: Peter Krempa QEMU 11.0 will deprecate that in favor of fds/vhostfds. Signed-off-by: Peter Krempa --- .../net-eth.x86_64-10.2.0.args | 36 ++++++++++ .../qemuxmlconfdata/net-eth.x86_64-10.2.0.xml | 44 +++++++++++++ .../net-virtio-vhost.x86_64-10.2.0.args | 42 ++++++++++++ .../net-virtio-vhost.x86_64-10.2.0.xml | 65 +++++++++++++++++++ tests/qemuxmlconftest.c | 4 ++ 5 files changed, 191 insertions(+) create mode 100644 tests/qemuxmlconfdata/net-eth.x86_64-10.2.0.args create mode 100644 tests/qemuxmlconfdata/net-eth.x86_64-10.2.0.xml create mode 100644 tests/qemuxmlconfdata/net-virtio-vhost.x86_64-10.2.0.ar= gs create mode 100644 tests/qemuxmlconfdata/net-virtio-vhost.x86_64-10.2.0.xml diff --git a/tests/qemuxmlconfdata/net-eth.x86_64-10.2.0.args b/tests/qemux= mlconfdata/net-eth.x86_64-10.2.0.args new file mode 100644 index 0000000000..745cbd4d79 --- /dev/null +++ b/tests/qemuxmlconfdata/net-eth.x86_64-10.2.0.args @@ -0,0 +1,36 @@ +LC_ALL=3DC \ +PATH=3D/bin \ +HOME=3D/var/lib/libvirt/qemu/domain--1-QEMUGuest1 \ +USER=3Dtest \ +LOGNAME=3Dtest \ +XDG_DATA_HOME=3D/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.local/share \ +XDG_CACHE_HOME=3D/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.cache \ +XDG_CONFIG_HOME=3D/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \ +/usr/bin/qemu-system-x86_64 \ +-name guest=3DQEMUGuest1,debug-threads=3Don \ +-S \ +-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/va= r/lib/libvirt/qemu/domain--1-QEMUGuest1/master-key.aes"}' \ +-machine pc-i440fx-10.2,usb=3Doff,dump-guest-core=3Doff,memory-backend=3Dp= c.ram,acpi=3Doff \ +-accel tcg \ +-cpu qemu64 \ +-m size=3D219136k \ +-object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":224395264}'= \ +-overcommit mem-lock=3Doff \ +-smp 1,sockets=3D1,cores=3D1,threads=3D1 \ +-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \ +-display none \ +-no-user-config \ +-nodefaults \ +-chardev socket,id=3Dcharmonitor,fd=3D1729,server=3Don,wait=3Doff \ +-mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol \ +-rtc base=3Dutc \ +-no-shutdown \ +-boot strict=3Don \ +-device '{"driver":"piix3-usb-uhci","id":"usb","bus":"pci.0","addr":"0x1.0= x2"}' \ +-blockdev '{"driver":"host_device","filename":"/dev/HostVG/QEMUGuest1","no= de-name":"libvirt-1-storage","read-only":false}' \ +-device '{"driver":"ide-hd","bus":"ide.0","unit":0,"drive":"libvirt-1-stor= age","id":"ide0-0-0","bootindex":1}' \ +-netdev '{"type":"tap","fd":"3","id":"hostnet0"}' \ +-device '{"driver":"rtl8139","netdev":"hostnet0","id":"net0","mac":"00:11:= 22:33:44:55","bus":"pci.0","addr":"0x2"}' \ +-audiodev '{"id":"audio1","driver":"none"}' \ +-sandbox on,obsolete=3Ddeny,elevateprivileges=3Ddeny,spawn=3Ddeny,resource= control=3Ddeny \ +-msg timestamp=3Don diff --git a/tests/qemuxmlconfdata/net-eth.x86_64-10.2.0.xml b/tests/qemuxm= lconfdata/net-eth.x86_64-10.2.0.xml new file mode 100644 index 0000000000..385cc59304 --- /dev/null +++ b/tests/qemuxmlconfdata/net-eth.x86_64-10.2.0.xml @@ -0,0 +1,44 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219100 + 219100 + 1 + + hvm + + + + qemu64 + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + + + + +
+ + +
+ + +
+ + + + +