diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-09-20 15:16:00 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-09-20 15:16:00 -0500 |
commit | 7f67d8922e2da59c02852de39f888d7873e8645c (patch) | |
tree | fde41774a54f63bce66a739332c3dbd27365af91 /hw/virtio.c | |
parent | 27acf660aa1678ff3e7291fa81f4d5d4020b20f8 (diff) | |
parent | 6e0ca8820dddd04056c43327f3b3699f572d03d4 (diff) |
Merge remote-tracking branch 'qmp/queue/qmp' into staging
Diffstat (limited to 'hw/virtio.c')
-rw-r--r-- | hw/virtio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/virtio.c b/hw/virtio.c index 946d911580..d9bf266492 100644 --- a/hw/virtio.c +++ b/hw/virtio.c @@ -847,7 +847,7 @@ void virtio_cleanup(VirtIODevice *vdev) g_free(vdev); } -static void virtio_vmstate_change(void *opaque, int running, int reason) +static void virtio_vmstate_change(void *opaque, int running, RunState state) { VirtIODevice *vdev = opaque; bool backend_run = running && (vdev->status & VIRTIO_CONFIG_S_DRIVER_OK); @@ -880,7 +880,7 @@ VirtIODevice *virtio_common_init(const char *name, uint16_t device_id, vdev->queue_sel = 0; vdev->config_vector = VIRTIO_NO_VECTOR; vdev->vq = g_malloc0(sizeof(VirtQueue) * VIRTIO_PCI_QUEUE_MAX); - vdev->vm_running = vm_running; + vdev->vm_running = runstate_is_running(); for(i = 0; i < VIRTIO_PCI_QUEUE_MAX; i++) { vdev->vq[i].vector = VIRTIO_NO_VECTOR; vdev->vq[i].vdev = vdev; |