cli: Add --controller driver.iothread

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2019-08-28 13:17:32 -04:00
parent cee3f6b48e
commit 1f0c262051
4 changed files with 8 additions and 5 deletions

View File

@ -233,7 +233,7 @@
<address type="pci" domain="0" bus="0" slot="4" function="2"/>
</controller>
<controller type="scsi" index="0" model="virtio-scsi">
<driver queues="4"/>
<driver queues="4" iothread="2"/>
</controller>
<controller type="xenbus" index="0" maxGrantFrames="64"/>
<filesystem type="mount" accessmode="mapped">

View File

@ -622,7 +622,7 @@ source.reservations.managed=no,source.reservations.source.type=unix,source.reser
--controller usb,model=ich9-uhci1,address=0:0:4.0,index=0,master=0,address.multifunction=on
--controller usb,model=ich9-uhci2,address=0:0:4.1,index=0,master.startport=2
--controller usb,model=ich9-uhci3,address=0:0:4.2,index=0,master=4
--controller scsi,,model=virtio-scsi,driver_queues=4,driver.queues=4
--controller scsi,,model=virtio-scsi,driver_queues=4,driver.queues=4,driver.iothread=2
--controller xenbus,maxGrantFrames=64
--input type=keyboard,bus=usb

View File

@ -3429,6 +3429,7 @@ class ParserController(VirtCLIParser):
cls.add_arg("index", "index")
cls.add_arg("maxGrantFrames", "maxGrantFrames")
cls.add_arg("master.startport", "master_startport")
cls.add_arg("driver.iothread", "driver_iothread")
cls.add_arg("driver.queues", "driver_queues")
cls.add_arg("address", None, lookup_cb=None, cb=cls.set_address_cb)

View File

@ -70,12 +70,14 @@ class DeviceController(Device):
model = XMLProperty("./@model")
vectors = XMLProperty("./@vectors", is_int=True)
ports = XMLProperty("./@ports", is_int=True)
master_startport = XMLProperty("./master/@startport", is_int=True)
driver_queues = XMLProperty("./driver/@queues", is_int=True)
maxGrantFrames = XMLProperty("./@maxGrantFrames", is_int=True)
index = XMLProperty("./@index", is_int=True)
driver_iothread = XMLProperty("./driver/@iothread", is_int=True)
driver_queues = XMLProperty("./driver/@queues", is_int=True)
master_startport = XMLProperty("./master/@startport", is_int=True)
##################
# Default config #