virtio: invoke set_status callback on reset
commite0c472d8c2795e523b0f9006dbe5bc22545c8300
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Sep 2010 16:32:52 +0000 (27 18:32 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 7 Oct 2010 10:19:47 +0000 (7 12:19 +0200)
tree70db30cf1ba848b3cabb593eaca866d6f8309203
parenta083a89d7277f3268a251ce635d9aae5559242bd
virtio: invoke set_status callback on reset

As status is set to 0 on reset, invoke the relevant callback. This makes
for a cleaner code in devices as they don't need to duplicate the code
in their reset routine, as well as excercises this path a little more.

In particular this makes it possible to unify
vhost-net handling code with the following patch.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio.c