From fae054b070143a60ce40671470292efc2dc58a49 Mon Sep 17 00:00:00 2001 From: "Michael S. Tsirkin" Date: Sun, 9 May 2010 19:42:09 +0300 Subject: 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 Signed-off-by: Michael S. Tsirkin Tested-by: David L Stevens --- hw/virtio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw/virtio.c') 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); -- cgit v1.2.3