virtio: virtio 1.0 cs04 spec compliance for reset

[ Upstream commit 05dbcb4307 ]

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>
This commit is contained in:
Michael S. Tsirkin 2016-04-03 15:23:37 +03:00 • committed by Sasha Levin
commit 0ffbec8de4