mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
conf: Ignore multiqueue with one queue.
Multi != One. And indeed, libvirt behaves the same way for queues='1' as without such setting. Let's make it clear in the XML. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
b0d2e31c5f
commit
181e02dfda
@ -8626,6 +8626,7 @@ virDomainNetDefParseXML(virDomainXMLOptionPtr xmlopt,
|
|||||||
queues);
|
queues);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
if (q > 1)
|
||||||
def->driver.virtio.queues = q;
|
def->driver.virtio.queues = q;
|
||||||
}
|
}
|
||||||
if ((str = virXPathString("string(./driver/host/@csum)", ctxt))) {
|
if ((str = virXPathString("string(./driver/host/@csum)", ctxt))) {
|
||||||
|
@ -28,6 +28,12 @@
|
|||||||
<driver name='vhost' queues='5'/>
|
<driver name='vhost' queues='5'/>
|
||||||
<backend tap='/dev/null' vhost='/dev/zero'/>
|
<backend tap='/dev/null' vhost='/dev/zero'/>
|
||||||
</interface>
|
</interface>
|
||||||
|
<interface type='user'>
|
||||||
|
<mac address='52:54:00:e5:48:59'/>
|
||||||
|
<model type='virtio'/>
|
||||||
|
<driver name='vhost' queues='1'/>
|
||||||
|
<backend tap='/dev/null' vhost='/dev/zero'/>
|
||||||
|
</interface>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
|
@ -27,6 +27,12 @@
|
|||||||
<model type='definitely-not-virtio'/>
|
<model type='definitely-not-virtio'/>
|
||||||
<backend tap='/dev/null'/>
|
<backend tap='/dev/null'/>
|
||||||
</interface>
|
</interface>
|
||||||
|
<interface type='user'>
|
||||||
|
<mac address='52:54:00:e5:48:59'/>
|
||||||
|
<model type='virtio'/>
|
||||||
|
<driver name='vhost'/>
|
||||||
|
<backend tap='/dev/null' vhost='/dev/zero'/>
|
||||||
|
</interface>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user