cli: Add virtio driver packed= option
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
bc246aeaba
commit
d24b3ba1d1
|
@ -252,7 +252,7 @@
|
||||||
</controller>
|
</controller>
|
||||||
<controller type="xenbus" maxGrantFrames="64"/>
|
<controller type="xenbus" maxGrantFrames="64"/>
|
||||||
<filesystem type="mount" accessmode="mapped">
|
<filesystem type="mount" accessmode="mapped">
|
||||||
<driver ats="on" iommu="off"/>
|
<driver ats="on" iommu="off" packed="on"/>
|
||||||
<alias name="testfsalias"/>
|
<alias name="testfsalias"/>
|
||||||
<source dir="/source"/>
|
<source dir="/source"/>
|
||||||
<target dir="/target"/>
|
<target dir="/target"/>
|
||||||
|
|
|
@ -679,7 +679,7 @@ source.reservations.managed=no,source.reservations.source.type=unix,source.reser
|
||||||
--hostdev /dev/pty7,type=misc
|
--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 template_name,/,type=template,mode=passthrough
|
||||||
--filesystem type=file,source=/tmp/somefile.img,target=/mount/point,accessmode=squash
|
--filesystem type=file,source=/tmp/somefile.img,target=/mount/point,accessmode=squash
|
||||||
|
|
||||||
|
|
|
@ -3029,6 +3029,7 @@ def _add_common_device_args(cls,
|
||||||
if virtio_options:
|
if virtio_options:
|
||||||
_add_arg("driver.ats", "virtio_driver.ats", is_onoff=True)
|
_add_arg("driver.ats", "virtio_driver.ats", is_onoff=True)
|
||||||
_add_arg("driver.iommu", "virtio_driver.iommu", 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=""):
|
def _add_device_seclabel_args(cls, list_propname, prefix=""):
|
||||||
|
|
|
@ -16,6 +16,7 @@ class DeviceVirtioDriver(XMLBuilder):
|
||||||
XML_NAME = "driver"
|
XML_NAME = "driver"
|
||||||
ats = XMLProperty("./@ats", is_onoff=True)
|
ats = XMLProperty("./@ats", is_onoff=True)
|
||||||
iommu = XMLProperty("./@iommu", is_onoff=True)
|
iommu = XMLProperty("./@iommu", is_onoff=True)
|
||||||
|
packed = XMLProperty("./@packed", is_onoff=True)
|
||||||
|
|
||||||
|
|
||||||
class DeviceSeclabel(XMLBuilder):
|
class DeviceSeclabel(XMLBuilder):
|
||||||
|
|
Loading…
Reference in New Issue