On Mon, Sep 14, 2026 at 16:28:53 +0800, Zhenzhong Duan wrote:
> Hi,
>
> This series adds support for configuring Intel vIOMMU (VT-d) in domain XML
> and formatting them onto the QEMU command line:
>
> * scalable_mode: Configures scalable mode support ('on'/'off').
> * fsts: Enables First-Stage Translation support ('on'/'off').
> * pasid_bits: Sets the number of supported PASID bits.
> * svm: Enables Shared Virtual Memory (SVM) / PRQ support ('on'/'off').
>
> With these attributes, users can configure advanced vIOMMU features for both
> emulated devices and assigned host devices (e.g., vSVA / nested translation
> via
> iommufd and first-stage translation).
>
> Example domain XML configuration:
>
> <iommu model='intel'>
> <driver caching_mode='on' iotlb='on' scalable_mode='on' fsts='on'
> pasid_bits='6' svm='on'/>
> </iommu>
>
> Which formats the following QEMU command line options:
>
> -device
> {"driver":"intel-iommu","id":"iommu0","caching-mode":true,"device-iotlb":true,"scalable-mode":true,"fsts":true,"pasid-bits":6,"svm":true}
>
> Testing:
> - Validated with libvirt test suite (ninja test).
> - Tested DSA card passthrough and SVM/vSVA with iommufd backend.
>
> Changelog:
> v3:
> - merge qemu patch into conf patch (Peter Krempa)
> - fix pasid_bits type definition (Peter Krempa)
> - fix doc to use 'pasid_bits' rather than 'pasid-bits' (Peter Krempa)
> - add patch10 to print attribute name in error message (Peter Krempa)
> - add patch5 for missing validations
I'll push the patches shortly. As within replies I'd suggest that the
conditions for the features that are enforced in the code are also
documented; post a patch separately for it.
Also consider sumarizing the added features in an entry to the NEWS.rst
file.