]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_pci: fix cpu affinity support
authorChristoph Hellwig <hch@lst.de>
Thu, 24 Aug 2017 16:07:02 +0000 (18:07 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 25 Aug 2017 18:38:26 +0000 (21:38 +0300)
commit79f529aa5ec5a8870e2456d1046480541b3ec12b
tree2bf5ad11505220311429dc6f0403d5765b3ff624
parent7a805547556e0ed404d43fa0d6a73aef88c0294a
virtio_pci: fix cpu affinity support

Commit 42e17b04 ("Revert "virtio_pci: use shared interrupts for
virtqueues"") removed the adjustment of the pre_vectors for the virtio
MSI-X vector allocation which was added in commit 3af3221c ("virtio:
allow drivers to request IRQ affinity when creating VQs"). This will
lead to an incorrect assignment of MSI-X vectors, and potential
deadlocks when offlining cpus.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Fixes: 42e17b04 ("Revert "virtio_pci: use shared interrupts for virtqueues")
Reported-by: YASUAKI ISHIMATSU <yasu.isimatu@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_pci_common.c