cli: Add --memballoon autodeflate
XML Mapping: <memballoon model=...> <autodeflate>on</autodeflate> </memballoon> Signed-off-by: Athina Plaskasoviti <athina.plaskasoviti@gmail.com>
This commit is contained in:
parent
06c2f87397
commit
ebf2199875
|
@ -187,7 +187,9 @@
|
|||
<model type="qxl"/>
|
||||
</video>
|
||||
<watchdog model="ib700" action="pause"/>
|
||||
<memballoon model="virtio"/>
|
||||
<memballoon model="virtio">
|
||||
<autodeflate>on</autodeflate>
|
||||
</memballoon>
|
||||
<rng model="virtio">
|
||||
<backend model="egd" type="udp">
|
||||
<source mode="bind" host="127.0.0.1" service="8000"/>
|
||||
|
@ -399,7 +401,9 @@
|
|||
<model type="qxl"/>
|
||||
</video>
|
||||
<watchdog model="ib700" action="pause"/>
|
||||
<memballoon model="virtio"/>
|
||||
<memballoon model="virtio">
|
||||
<autodeflate>on</autodeflate>
|
||||
</memballoon>
|
||||
<rng model="virtio">
|
||||
<backend model="egd" type="udp">
|
||||
<source mode="bind" host="127.0.0.1" service="8000"/>
|
||||
|
|
|
@ -508,7 +508,7 @@ cache.mode=emulate,cache.level=3
|
|||
--controller scsi,model=virtio-scsi
|
||||
--graphics vnc
|
||||
--filesystem /foo/source,/bar/target
|
||||
--memballoon virtio
|
||||
--memballoon virtio,autodeflate=on
|
||||
--watchdog ib700,action=pause
|
||||
--tpm passthrough,model=tpm-crb,path=/dev/tpm0
|
||||
--rng egd,backend_host=127.0.0.1,backend_service=8000,backend_type=udp,backend_mode=bind,backend_connect_host=foo,backend_connect_service=708,rate.bytes=1234,rate.period=1000,model=virtio
|
||||
|
|
|
@ -3502,6 +3502,7 @@ class ParserMemballoon(VirtCLIParser):
|
|||
_add_common_device_args(cls, virtio_options=True)
|
||||
|
||||
cls.add_arg("model", "model")
|
||||
cls.add_arg("autodeflate", "autodeflate", is_onoff=True)
|
||||
|
||||
|
||||
###################
|
||||
|
|
|
@ -13,6 +13,7 @@ class DeviceMemballoon(Device):
|
|||
XML_NAME = "memballoon"
|
||||
|
||||
model = XMLProperty("./@model")
|
||||
autodeflate = XMLProperty("./autodeflate", is_onoff=True)
|
||||
|
||||
|
||||
##################
|
||||
|
|
Loading…
Reference in New Issue