virtio: fix modern device queue notify 41/28841/4
authorMohsin Kazmi <sykazmi@cisco.com>
Tue, 29 Sep 2020 10:01:25 +0000 (10:01 +0000)
committerBeno�t Ganne <bganne@cisco.com>
Tue, 29 Sep 2020 13:34:13 +0000 (13:34 +0000)
commit162a296756f3dbead55079e4670973d859df1ef9
treec24b836a83a051d809508697ba8871538a0ea040
parentd68faf8559da72aa6ad0526d5a86fb16587b1508
virtio: fix modern device queue notify

QUEUE_SELECT and QUEUE_NOTIFY_OFF registers are shared between all
workers operating on the same device and operations are not atomic

Type: fix

Change-Id: Ie017b1bfc7e3b6b4e59029f45db78eeffd9f3aeb
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
src/vnet/devices/virtio/pci.c
src/vnet/devices/virtio/pci.h
src/vnet/devices/virtio/virtio.h
src/vnet/devices/virtio/virtio_pci_legacy.c
src/vnet/devices/virtio/virtio_pci_modern.c