virtio_pci: optional MSI-X support
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 14 May 2009 10:55:41 +0000 (13:55 +0300)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 12 Jun 2009 12:46:37 +0000 (22:16 +0930)
commit82af8ce84ed65d2fb6d8c017d3f2bbbf161061fb
treeaed59c86724c7d3f565d1c60b38d25a7bf20985b
parent77cf524654a886e0fbbf03b16b44f048deef7b0c
virtio_pci: optional MSI-X support

This implements optional MSI-X support in virtio_pci.
MSI-X is used whenever the host supports at least 2 MSI-X
vectors: 1 for configuration changes and 1 for virtqueues.
Per-virtqueue vectors are allocated if enough vectors
available.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (+ whitespace, style)
drivers/virtio/virtio_pci.c
include/linux/virtio_pci.h