]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
conf: Introduce iommufd enum for domaincaps
authorPavel Hrdina <phrdina@redhat.com>
Sat, 14 Feb 2026 05:14:20 +0000 (06:14 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 16 Feb 2026 14:50:39 +0000 (15:50 +0100)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/formatdomaincaps.rst
src/conf/domain_capabilities.c
src/conf/domain_capabilities.h

index 8b4f0ecff36f1e8c6f704dd7fc52e2981f26c706..6ba7f84f96a8970aada2071d69e2eda68f60c63a 100644 (file)
@@ -461,6 +461,10 @@ Well, only if the following is enabled:
            <value>vfio</value>
            <value>xen</value>
          </enum>
+         <enum name='iommufd'>
+           <value>yes</value>
+           <value>no</value>
+         </enum>
        </hostdev>
      </devices>
    </domainCapabilities>
@@ -477,6 +481,9 @@ Well, only if the following is enabled:
    ``mode="capabilities"``.
 ``pciBackend``
    Options for the ``name`` attribute of the <driver/> element.
+``iommufd``
+   Options for the ``iommufd`` attribute of the <driver/> element.
+   :since:`Since 12.1.0`
 
 RNG device
 ^^^^^^^^^^
index f8431246951abcb4597a2f681531d09433a08793..49179b97abdf5075e6edb2ba47ebbcee8522d47b 100644 (file)
@@ -620,6 +620,7 @@ virDomainCapsDeviceHostdevFormat(virBuffer *buf,
     ENUM_PROCESS(hostdev, subsysType, virDomainHostdevSubsysTypeToString);
     ENUM_PROCESS(hostdev, capsType, virDomainHostdevCapsTypeToString);
     ENUM_PROCESS(hostdev, pciBackend, virDeviceHostdevPCIDriverNameTypeToString);
+    ENUM_PROCESS(hostdev, iommufd, virTristateBoolTypeToString);
 
     FORMAT_EPILOGUE(hostdev);
 }
index 437981c71103906196ec1c70e851e91ba53c07ad..b10370db8f13ad9d51a98298dcd6d63586e02919 100644 (file)
@@ -108,6 +108,7 @@ struct _virDomainCapsDeviceHostdev {
     virDomainCapsEnum subsysType;       /* Info about virDomainHostdevSubsysType */
     virDomainCapsEnum capsType;         /* Info about virDomainHostdevCapsType */
     virDomainCapsEnum pciBackend;       /* Info about virDomainHostdevSubsysPCIBackendType */
+    virDomainCapsEnum iommufd;          /* Info about iommufd:virTristateBool */
     /* add new fields here */
 };