qemu/docs/specs
Changchun Ouyang b931bfbf04 vhost-user: add multiple queue support
This patch is initially based a patch from Nikolay Nikolaev.

This patch adds vhost-user multiple queue support, by creating a nc
and vhost_net pair for each queue.

Qemu exits if find that the backend can't support the number of requested
queues (by providing queues=# option). The max number is queried by a
new message, VHOST_USER_GET_QUEUE_NUM, and is sent only when protocol
feature VHOST_USER_PROTOCOL_F_MQ is present first.

The max queue check is done at vhost-user initiation stage. We initiate
one queue first, which, in the meantime, also gets the max_queues the
backend supports.

In older version, it was reported that some messages are sent more times
than necessary. Here we came an agreement with Michael that we could
categorize vhost user messages to 2 types: non-vring specific messages,
which should be sent only once, and vring specific messages, which should
be sent per queue.

Here I introduced a helper function vhost_user_one_time_request(), which
lists following messages as non-vring specific messages:

        VHOST_USER_SET_OWNER
        VHOST_USER_RESET_DEVICE
        VHOST_USER_SET_MEM_TABLE
        VHOST_USER_GET_QUEUE_NUM

For above messages, we simply ignore them when they are not sent the first
time.

Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Tested-by: Marcel Apfelbaum <marcel@redhat.com>
2015-09-24 16:27:53 +03:00
..
acpi_cpu_hotplug.txt acpi: ich9: add CPU hotplug handling to Q35 machine 2014-01-26 13:11:44 +02:00
acpi_mem_hotplug.txt acpi: add hardware implementation for memory hot unplug 2015-04-27 21:09:07 +02:00
acpi_pci_hotplug.txt acpi_piix4: Re-define PCI hotplug eject register read 2012-04-15 12:17:23 +03:00
edu.txt hw: misc, add educational driver 2015-01-26 12:26:55 +01:00
fw_cfg.txt fw_cfg: insert fw_cfg file blobs via qemu cmdline 2015-06-10 08:06:46 +02:00
ivshmem_device_spec.txt Replace Qemu by QEMU in internal documentation 2012-04-07 13:58:25 +00:00
pci-ids.txt add pci-bridge-seat 2015-06-23 17:08:22 +02:00
pci-serial.txt serial: add pci-serial documentation 2012-10-22 13:26:42 -05:00
pci-testdev.txt pci: add pci test device 2013-04-16 01:41:53 +03:00
ppc-spapr-hcalls.txt typofixes - v4 2015-09-11 10:45:43 +03:00
ppc-spapr-hotplug.txt spapr: Support ibm,dynamic-reconfiguration-memory 2015-09-23 10:51:10 +10:00
pvpanic.txt pvpanic: add document of pvpanic 2013-04-30 10:30:01 -05:00
qcow2.txt maint: remove / fix many doubled words 2015-09-11 10:21:38 +03:00
qed_spec.txt docs: Describe zero data clusters in QED specification 2011-04-13 12:06:40 +02:00
rocker.txt maint: remove / fix many doubled words 2015-09-11 10:21:38 +03:00
standard-vga.txt vga-pci: add qext region to mmio 2014-10-15 11:08:35 +02:00
vhost-user.txt vhost-user: add multiple queue support 2015-09-24 16:27:53 +03:00
vmw_pvscsi-spec.txt scsi: VMWare PVSCSI paravirtual device implementation 2013-04-19 10:44:17 +02:00