aboutsummaryrefslogtreecommitdiff
path: root/hw/syborg_virtio.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2010-03-17 13:08:05 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-04-01 13:56:43 -0500
commit3e607cb503acbd8606e5d42e6b80adcf1ccf9a92 (patch)
treed807a3e205951a642cfbc913367959ad3abdb6f8 /hw/syborg_virtio.c
parent1cbdabe203164433fbbec3a1815d8be42a085c88 (diff)
virtio: add set_status callback
vhost net backend needs to be notified when frontend status changes. Add a callback, similar to set_features. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/syborg_virtio.c')
-rw-r--r--hw/syborg_virtio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/syborg_virtio.c b/hw/syborg_virtio.c
index 65239a0572..abf0370107 100644
--- a/hw/syborg_virtio.c
+++ b/hw/syborg_virtio.c
@@ -149,7 +149,7 @@ static void syborg_virtio_writel(void *opaque, target_phys_addr_t offset,
virtio_queue_notify(vdev, value);
break;
case SYBORG_VIRTIO_STATUS:
- vdev->status = value & 0xFF;
+ virtio_set_status(vdev, value & 0xFF);
if (vdev->status == 0)
virtio_reset(vdev);
break;