]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: virtio 1.0 cs04 spec compliance for reset
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 3 Apr 2016 12:23:37 +0000 (15:23 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 7 Apr 2016 12:16:39 +0000 (15:16 +0300)
commit4aad575909d28e04f4086ca300aa3d33368da1c1
tree62a07c001c763f524d794ec83d25a5338f1a612c
parent63c0877da54b96f2e5946893a0ce547ff0a882c4
virtio: virtio 1.0 cs04 spec compliance for reset

The spec says: after writing 0 to device_status, the driver MUST wait
for a read of device_status to return 0 before reinitializing the
device.

Cc: stable@vger.kernel.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/virtio/virtio_pci_modern.c