OSDN Git Service

virtio-scsi: enable MSI-X support
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Jul 2012 12:38:03 +0000 (14:38 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Jul 2012 13:47:30 +0000 (15:47 +0200)
commit4c205d0cb1c8bde5a53f6acceda74dae1043a197
tree523369fc3994b78a437c1e6389aabaeafdceaae1
parent3f910904ecce48bcfd6ee269e8ac84a571fbc1e3
virtio-scsi: enable MSI-X support

While virtio-scsi does support multiqueue, the default number of
interrupt vectors is not enough to actually enable usage of
multiple queues in the driver; this is because with only 2
vectors the driver will not be able to use a separate
interrupt for each request queue.  Derive the desired number
of vectors from the number of request queues.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/virtio-pci.c