OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2016 06:42:10 +0000 (15:42 +0900)
commit5f6e35c2f9464c8b67b54ea5a919105c5f46f514
tree95af68aa972195d5b0ba16a69682bd8385308763
parent06e2d7dd90cbafd2d911f86785b69cec1bcd3b02
virtio: virtio 1.0 cs04 spec compliance for reset

commit 05dbcb430795b2e1fb1d5c757f8619d3dbed0a1c upstream.

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.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/virtio/virtio_pci_modern.c