diff --git a/tests/data/cli/compare/virt-install-many-devices.xml b/tests/data/cli/compare/virt-install-many-devices.xml index e49a073b..6e700e17 100644 --- a/tests/data/cli/compare/virt-install-many-devices.xml +++ b/tests/data/cli/compare/virt-install-many-devices.xml @@ -252,7 +252,7 @@ - + diff --git a/tests/test_cli.py b/tests/test_cli.py index 7f8d2390..ac988d73 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -679,7 +679,7 @@ source.reservations.managed=no,source.reservations.source.type=unix,source.reser --hostdev /dev/pty7,type=misc ---filesystem /source,/target,alias.name=testfsalias,driver.ats=on,driver.iommu=off +--filesystem /source,/target,alias.name=testfsalias,driver.ats=on,driver.iommu=off,driver.packed=on --filesystem template_name,/,type=template,mode=passthrough --filesystem type=file,source=/tmp/somefile.img,target=/mount/point,accessmode=squash diff --git a/virtinst/cli.py b/virtinst/cli.py index 095b269f..11d541e6 100644 --- a/virtinst/cli.py +++ b/virtinst/cli.py @@ -3029,6 +3029,7 @@ def _add_common_device_args(cls, if virtio_options: _add_arg("driver.ats", "virtio_driver.ats", is_onoff=True) _add_arg("driver.iommu", "virtio_driver.iommu", is_onoff=True) + _add_arg("driver.packed", "virtio_driver.packed", is_onoff=True) def _add_device_seclabel_args(cls, list_propname, prefix=""): diff --git a/virtinst/devices/device.py b/virtinst/devices/device.py index bb91d33b..132107ef 100644 --- a/virtinst/devices/device.py +++ b/virtinst/devices/device.py @@ -16,6 +16,7 @@ class DeviceVirtioDriver(XMLBuilder): XML_NAME = "driver" ats = XMLProperty("./@ats", is_onoff=True) iommu = XMLProperty("./@iommu", is_onoff=True) + packed = XMLProperty("./@packed", is_onoff=True) class DeviceSeclabel(XMLBuilder):