virtio: virtio 1.0 cs04 spec compliance for reset
commit0ffbec8de4d115f236ea792c71f4ca123f53829c
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 3 Apr 2016 12:23:37 +0000 (3 15:23 +0300)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 20 Apr 2016 05:08:53 +0000 (20 01:08 -0400)
tree1f51350eb77e1ade3bd15d0740f52484b75c5c0b
parente649832a3ccad61b0c94fda4011e07c0391c82b1
virtio: virtio 1.0 cs04 spec compliance for reset

[ Upstream commit 05dbcb430795b2e1fb1d5c757f8619d3dbed0a1c ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/virtio/virtio_pci_modern.c