diff options
author | Menno Lageman <menno.lageman@oracle.com> | 2020-07-07 09:55:53 +0200 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2020-07-12 09:15:52 -0400 |
commit | 25419db9caf0e45578e98d85af096fab52a3c7cc (patch) | |
tree | f73293d69804213208590c6d9ed8aa09be4d55bb /virtinst/guest.py | |
parent | 4eb7834c6e20360af02fb52da594c338112b542c (diff) | |
download | virt-manager-25419db9caf0e45578e98d85af096fab52a3c7cc.tar.gz |
virtinst: add support for configuring the IOMMU
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>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Menno Lageman <menno.lageman@oracle.com>
Diffstat (limited to 'virtinst/guest.py')
-rw-r--r-- | virtinst/guest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/virtinst/guest.py b/virtinst/guest.py index 76dab8b4..6fdb67a1 100644 --- a/virtinst/guest.py +++ b/virtinst/guest.py @@ -27,7 +27,7 @@ class _DomainDevices(XMLBuilder): 'smartcard', 'serial', 'parallel', 'console', 'channel', 'input', 'tpm', 'graphics', 'sound', 'video', 'hostdev', 'redirdev', 'watchdog', 'memballoon', 'rng', 'panic', - 'memory', 'vsock'] + 'memory', 'vsock', 'iommu'] disk = XMLChildProperty(DeviceDisk) @@ -52,6 +52,7 @@ class _DomainDevices(XMLBuilder): panic = XMLChildProperty(DevicePanic) memory = XMLChildProperty(DeviceMemory) vsock = XMLChildProperty(DeviceVsock) + iommu = XMLChildProperty(DeviceIommu) def get_all(self): retlist = [] |