From patchwork Sun May 9 16:42:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: virtio: invoke set_features on load Date: Sun, 09 May 2010 06:42:09 -0000 From: "Michael S. Tsirkin" X-Patchwork-Id: 52003 Message-Id: <20100509164209.GA20658@redhat.com> To: qemu-devel@nongnu.org, Anthony Liguori , dlstevens@us.ibm.com Cc: 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 --- David, a tested-by tag would be appreciated. hw/virtio.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/virtio.c b/hw/virtio.c index 5d686f0..74c450d 100644 --- a/hw/virtio.c +++ b/hw/virtio.c @@ -692,6 +692,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);