Home
last modified time | relevance | path

Searched hist:ea52bf8eda9832ad30e9f059c5ead8d44f882a53 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/9p/
H A Dtrans_virtio.cdiff ea52bf8eda9832ad30e9f059c5ead8d44f882a53 Thu Jul 09 07:58:26 CDT 2015 Pierre Morel <pmorel@linux.vnet.ibm.com> 9p/trans_virtio: reset virtio device on remove

On device shutdown/removal, virtio drivers need to trigger a reset on
the device; if this is neglected, the virtio core will complain about
non-zero device status.

This patch resets the status when the 9p virtio driver is removed
from the system by calling vdev->config->reset on the virtio_device
to send a reset to the host virtio device.

Signed-off-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>