virtio: invoke set_status callback on reset
commit8006040d47555cba456c9cc43374fba9e04e3bcc
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Sep 2010 16:32:52 +0000 (27 18:32 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 12 Oct 2010 21:09:26 +0000 (12 16:09 -0500)
tree97df5fb246e4f4c29d9be853247a96a0c481ee61
parent456496e22556203f5f9c3ff02faa7d75ef3face9
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>
(cherry picked from commit e0c472d8c2795e523b0f9006dbe5bc22545c8300)
hw/virtio.c