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)
commit05dbcb430795b2e1fb1d5c757f8619d3dbed0a1c
tree62a07c001c763f524d794ec83d25a5338f1a612c
parente8aabc64d7f5c8702e420c6fa478368f60718ae4
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