cli: --disk: add support for driver.queues config
This commit is contained in:
parent
c2f629fc03
commit
ddcca8f585
|
@ -39,7 +39,7 @@
|
|||
<devices>
|
||||
<emulator>/usr/bin/qemu-kvm</emulator>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu" type="raw" cache="writeback" io="threads" iothread="3"/>
|
||||
<driver name="qemu" type="raw" cache="writeback" io="threads" iothread="3" queues="8"/>
|
||||
<source dev="/dev/default-pool/UPPER"/>
|
||||
<target dev="vda" bus="virtio"/>
|
||||
<serial>WD-WMAP9A966149</serial>
|
||||
|
|
|
@ -585,7 +585,7 @@ vcpus.vcpu1.id=2,vcpus.vcpu1.enabled=yes
|
|||
--cpu none
|
||||
--iothreads 5
|
||||
|
||||
--disk type=block,source.dev=/dev/default-pool/UPPER,cache=writeback,io=threads,perms=sh,serial=WD-WMAP9A966149,wwn=123456789abcdefa,boot_order=2,driver.iothread=3
|
||||
--disk type=block,source.dev=/dev/default-pool/UPPER,cache=writeback,io=threads,perms=sh,serial=WD-WMAP9A966149,wwn=123456789abcdefa,boot_order=2,driver.iothread=3,driver.queues=8
|
||||
--disk source.file=%(NEWIMG1)s,sparse=false,size=.001,perms=ro,error_policy=enospace,discard=unmap,detect_zeroes=unmap,address.type=drive,address.controller=0,address.target=2,address.unit=0
|
||||
--disk device=cdrom,bus=sata,read_bytes_sec=1,read_iops_sec=2,write_bytes_sec=5,write_iops_sec=6,driver.copy_on_read=on,geometry.cyls=16383,geometry.heads=16,geometry.secs=63,geometry.trans=lba
|
||||
--disk size=1
|
||||
|
|
|
@ -3468,6 +3468,7 @@ class ParserDisk(VirtCLIParser):
|
|||
cls.add_arg("driver.copy_on_read", "driver_copy_on_read", is_onoff=True)
|
||||
cls.add_arg("driver.io", "driver_io")
|
||||
cls.add_arg("driver.iothread", "driver_iothread")
|
||||
cls.add_arg("driver.queues", "driver_queues")
|
||||
cls.add_arg("driver.error_policy", "error_policy")
|
||||
|
||||
cls.add_arg("iotune.read_bytes_sec", "iotune_rbs")
|
||||
|
|
|
@ -429,7 +429,7 @@ class DeviceDisk(Device):
|
|||
"_xmltype", "_device", "snapshot_policy",
|
||||
"driver_name", "driver_type",
|
||||
"driver_cache", "driver_discard", "driver_detect_zeroes",
|
||||
"driver_io", "error_policy",
|
||||
"driver_io", "driver_iothread", "driver_queues", "error_policy",
|
||||
"auth_username", "auth_secret_type", "auth_secret_uuid",
|
||||
"source",
|
||||
"target", "bus",
|
||||
|
@ -482,6 +482,7 @@ class DeviceDisk(Device):
|
|||
driver_detect_zeroes = XMLProperty("./driver/@detect_zeroes")
|
||||
driver_io = XMLProperty("./driver/@io")
|
||||
driver_iothread = XMLProperty("./driver/@iothread", is_int=True)
|
||||
driver_queues = XMLProperty("./driver/@queues", is_int=True)
|
||||
|
||||
error_policy = XMLProperty("./driver/@error_policy")
|
||||
serial = XMLProperty("./serial")
|
||||
|
|
Loading…
Reference in New Issue