[PATCH] virtinst: add support for configuring the IOMMU

Cole Robinson crobinso at redhat.com
Sun Jul 12 13:21:04 UTC 2020


On 7/7/20 3:55 AM, Menno Lageman wrote:
> Add a --iommu option to configure IOMMU parameters as described in
> https://libvirt.org/formatdomain.html#elementsIommu
> 
> E.g. 'virt-install --iommu model=intel,driver.aw_bits=48,driver.iotlb=on ...'
> will generate the following domain XML:
> 
>   <devices>
>     <iommu model="intel">
>       <driver aw_bits="48" iotlb="on"/>
>     </iommu>
>   </devices>
> 
> Signed-off-by: Menno Lageman <menno.lageman at oracle.com>
> ---
>  man/virt-install.pod                          |  6 ++++
>  .../virt-install-singleton-config-2.xml       |  6 ++++
>  tests/test_cli.py                             |  1 +
>  virtinst/cli.py                               | 21 ++++++++++++++
>  virtinst/devices/__init__.py                  |  1 +
>  virtinst/devices/device.py                    |  1 +
>  virtinst/devices/iommu.py                     | 29 +++++++++++++++++++
>  virtinst/guest.py                             |  3 +-
>  8 files changed, 67 insertions(+), 1 deletion(-)
>  create mode 100644 virtinst/devices/iommu.py

Thanks! pushed now

- Cole




More information about the virt-tools-list mailing list