summaryrefslogtreecommitdiffstats
path: root/hw/virtio.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin2010-05-09 18:42:09 +0200
committerMichael S. Tsirkin2010-05-12 17:07:54 +0200
commitfae054b070143a60ce40671470292efc2dc58a49 (patch)
tree598f8e04e2ffb5b25108a38732d30f02f1ef3948 /hw/virtio.c
parentpci: irq_state vmstate breakage (diff)
downloadqemu-fae054b070143a60ce40671470292efc2dc58a49.tar.gz
qemu-fae054b070143a60ce40671470292efc2dc58a49.tar.xz
qemu-fae054b070143a60ce40671470292efc2dc58a49.zip
virtio: invoke set_features on load
After migration, vhost was not getting features acked because set_features callback was never invoked. The fix is just to invoke that callback. Reported-by: David L Stevens <dlstevens@us.ibm.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Tested-by: David L Stevens <dlstevens@us.ibm.com>
Diffstat (limited to 'hw/virtio.c')
-rw-r--r--hw/virtio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/virtio.c b/hw/virtio.c
index e7657ae8aa..4475bb3e44 100644
--- a/hw/virtio.c
+++ b/hw/virtio.c
@@ -677,6 +677,8 @@ int virtio_load(VirtIODevice *vdev, QEMUFile *f)
features, supported_features);
return -1;
}
+ if (vdev->set_features)
+ vdev->set_features(vdev, features);
vdev->guest_features = features;
vdev->config_len = qemu_get_be32(f);
qemu_get_buffer(f, vdev->config, vdev->config_len);