From nobody Tue Mar 3 04:51:25 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=1771246079; cv=none; d=zohomail.com; s=zohoarc; b=hQ+S8JkszHsfleAvnYlNDChi9duGhVVT1O/LkRZxz+RTpNtqK5G3d5kehltvLHRDjx8lBOEyvReElyHR5lepXTP/NA8XmPcNv8RYhmaAz3fzVKCpKWtQi9dMxBILhxvdGlbqcwG8FiCCDJm0UISyjUqWYHwBIZKNQnwnaDjpC5E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771246079; 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=E8lboTkCXcmneue7E8OsfUIqY+faZ1WTKHFZOiltOn4=; b=fmdPfP9FdobHOGUTHCpbVjpxt4f52yzx2dF8lyuhYs+owgJOiO6wxaBu0ipwx6QCd2QejgJHW85tm0nqD1hxhTK8oIER8G+F25NUF4M1gwGPF04oPv2G41GLudZSNWItSeJ+vAz6ZpLsU7P6+pdAt19KEt3j43tge1uO6ribYSs= 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 1771246079352796.9995307537902; Mon, 16 Feb 2026 04:47:59 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id DF85C41869; Mon, 16 Feb 2026 07:47:58 -0500 (EST) Received: from [172.19.199.9] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id C86D641DC6; Mon, 16 Feb 2026 07:35:23 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id C8A1B4196F; Mon, 16 Feb 2026 07:35:14 -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 CE7E841A39 for ; Mon, 16 Feb 2026 07:28:46 -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-530-Op3GT8TDOC-c87QM-Gveaw-1; Mon, 16 Feb 2026 07:28:45 -0500 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (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 69DD718004AD for ; Mon, 16 Feb 2026 12:28:44 +0000 (UTC) Received: from antique-laptop.rosnicka.net (unknown [10.45.242.10]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 90FD530001A5 for ; Mon, 16 Feb 2026 12:28:43 +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=1771244926; 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=E8lboTkCXcmneue7E8OsfUIqY+faZ1WTKHFZOiltOn4=; b=OiQ+izzoCXo33nQhR4wvHkoJyLGKqBcim+IIrGGkMexs+5mm1WkAcyhaKhzWlqiDZXh+zF OmNTRFEKy5pkMC91/jDfFoQFc+hQJMT6glkOA9uqjM0VtwV6XIkNx8Q7QI1x2iiv6t4H/x V+TZVJFgPJLceMeVUCIoa7XymabVdf8= X-MC-Unique: Op3GT8TDOC-c87QM-Gveaw-1 X-Mimecast-MFC-AGG-ID: Op3GT8TDOC-c87QM-Gveaw_1771244924 To: devel@lists.libvirt.org Subject: [libvirt PATCH 23/24] conf: Introduce iommufd enum for domaincaps Date: Mon, 16 Feb 2026 13:28:15 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: ZBOi7ek2KmLZcSQyhNpl1HilZHb3IaWtJeA2XiIRvqI_1771244924 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: 7T6DNHQWBOANM73RMMDCS6342TQPWFG4 X-Message-ID-Hash: 7T6DNHQWBOANM73RMMDCS6342TQPWFG4 X-MailFrom: phrdina@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: Pavel Hrdina via Devel Reply-To: Pavel Hrdina X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1771246080466154100 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Pavel Hrdina --- docs/formatdomaincaps.rst | 7 +++++++ src/conf/domain_capabilities.c | 1 + src/conf/domain_capabilities.h | 1 + 3 files changed, 9 insertions(+) diff --git a/docs/formatdomaincaps.rst b/docs/formatdomaincaps.rst index 8b4f0ecff3..6ba7f84f96 100644 --- a/docs/formatdomaincaps.rst +++ b/docs/formatdomaincaps.rst @@ -461,6 +461,10 @@ Well, only if the following is enabled: vfio xen + + yes + no + @@ -477,6 +481,9 @@ Well, only if the following is enabled: ``mode=3D"capabilities"``. ``pciBackend`` Options for the ``name`` attribute of the element. +``iommufd`` + Options for the ``iommufd`` attribute of the element. + :since:`Since 12.1.0` =20 RNG device ^^^^^^^^^^ diff --git a/src/conf/domain_capabilities.c b/src/conf/domain_capabilities.c index f843124695..49179b97ab 100644 --- a/src/conf/domain_capabilities.c +++ b/src/conf/domain_capabilities.c @@ -620,6 +620,7 @@ virDomainCapsDeviceHostdevFormat(virBuffer *buf, ENUM_PROCESS(hostdev, subsysType, virDomainHostdevSubsysTypeToString); ENUM_PROCESS(hostdev, capsType, virDomainHostdevCapsTypeToString); ENUM_PROCESS(hostdev, pciBackend, virDeviceHostdevPCIDriverNameTypeToS= tring); + ENUM_PROCESS(hostdev, iommufd, virTristateBoolTypeToString); =20 FORMAT_EPILOGUE(hostdev); } diff --git a/src/conf/domain_capabilities.h b/src/conf/domain_capabilities.h index 437981c711..b10370db8f 100644 --- a/src/conf/domain_capabilities.h +++ b/src/conf/domain_capabilities.h @@ -108,6 +108,7 @@ struct _virDomainCapsDeviceHostdev { virDomainCapsEnum subsysType; /* Info about virDomainHostdevSubs= ysType */ virDomainCapsEnum capsType; /* Info about virDomainHostdevCaps= Type */ virDomainCapsEnum pciBackend; /* Info about virDomainHostdevSubs= ysPCIBackendType */ + virDomainCapsEnum iommufd; /* Info about iommufd:virTristateB= ool */ /* add new fields here */ }; =20 --=20 2.53.0