mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: Support multiple queue virtio-scsi
This introduce a new attribute "num_queues" (same with the good name QEMU uses) for virtio-scsi controller. An example of the XML: <controller type='scsi' index='0' model='virtio-scsi' num_queues='8'/> The corresponding QEMU command line: -device virtio-scsi-pci,id=scsi0,num_queues=8,bus=pci.0,addr=0x3 \
This commit is contained in:
@@ -2092,13 +2092,17 @@
|
||||
controller. A "scsi" controller has an optional
|
||||
attribute <code>model</code>, which is one of "auto", "buslogic",
|
||||
"ibmvscsi", "lsilogic", "lsisas1068", "lsisas1078", "virtio-scsi" or
|
||||
"vmpvscsi". A "usb" controller has an optional attribute
|
||||
<code>model</code>, which is one of "piix3-uhci", "piix4-uhci", "ehci",
|
||||
"ich9-ehci1", "ich9-uhci1", "ich9-uhci2", "ich9-uhci3",
|
||||
"vt82c686b-uhci", "pci-ohci" or "nec-xhci". Additionally,
|
||||
<span class="since">since 0.10.0</span>, if the USB bus needs to be
|
||||
explicitly disabled for the guest, <code>model='none'</code> may be used.
|
||||
The PowerPC64 "spapr-vio" addresses do not have an associated controller.
|
||||
"vmpvscsi". The attribute <code>num_queues</code>
|
||||
(<span class="since">1.0.5 (QEMU and KVM only)</span>) specifies
|
||||
the number of queues for the controller. For best performance, it's
|
||||
recommended to specify a value matching the number of vCPUs. A "usb"
|
||||
controller has an optional attribute <code>model</code>, which is one
|
||||
of "piix3-uhci", "piix4-uhci", "ehci", "ich9-ehci1", "ich9-uhci1",
|
||||
"ich9-uhci2", "ich9-uhci3", "vt82c686b-uhci", "pci-ohci" or "nec-xhci".
|
||||
Additionally, <span class="since">since 0.10.0</span>, if the USB bus
|
||||
needs to be explicitly disabled for the guest, <code>model='none'</code>
|
||||
may be used. The PowerPC64 "spapr-vio" addresses do not have an
|
||||
associated controller.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
@@ -1426,6 +1426,11 @@
|
||||
</choice>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="num_queues">
|
||||
<ref name="unsignedInt"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<ref name="usbmaster"/>
|
||||
</optional>
|
||||
|
||||
Reference in New Issue
Block a user