]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: support reserved vqs
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Sep 2012 18:47:45 +0000 (21:47 +0300)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 28 Sep 2012 05:35:15 +0000 (15:05 +0930)
commit9282118f9f76564ec3829be139fd90533824ee26
treeeae794db0b3983d2a901ecf6471eda6e3f9ff26f
parent774bb762986c25080b4b899cb366a04a1372177a
virtio: support reserved vqs

virtio network device multiqueue support reserves
vq 3 for future use (useful both for future extensions and to make it
pretty - this way receive vqs have even and transmit - odd numbers).
Make it possible to skip initialization for
specific vq numbers by specifying NULL for name.
Document this usage as well as (existing) NULL callback.

Drivers using this not coded up yet, so I simply tested
with virtio-pci and verified that this patch does
not break existing drivers.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/lguest/lguest_device.c
drivers/remoteproc/remoteproc_virtio.c
drivers/s390/kvm/kvm_virtio.c
drivers/virtio/virtio_mmio.c
drivers/virtio/virtio_pci.c
include/linux/virtio_config.h