docs: domain: Fix iothread to virtqueue mapping example

Each queue can be referenced only once and queues are numbered starting
from 0. Modify the example to show a valid configuration of one
iothread servicing more queues.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
Peter Krempa 2024-02-16 09:40:59 +01:00
parent da3b0468f3
commit 8d9e1f7718

View File

@ -3352,15 +3352,13 @@ paravirtualized driver is specified via the ``disk`` element.
handle given queues. :since:`Since 10.0.0 (QEMU 9.0, virtio disks only)`. handle given queues. :since:`Since 10.0.0 (QEMU 9.0, virtio disks only)`.
Example:: Example::
<driver name='qemu' queues='2'> <driver name='qemu' queues='3'>
<iothreads> <iothreads>
<iothread id='1'>
<queue id='1'/>
</iothread>
<iothread id='2'> <iothread id='2'>
<queue id='1'/> <queue id='1'/>
</iothread> </iothread>
<iothread id='3'> <iothread id='3'>
<queue id='0'/>
<queue id='2'/> <queue id='2'/>
</iothread> </iothread>
</iothreads> </iothreads>