qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH] virtio: invoke set_features on load


From: David Stevens
Subject: [Qemu-devel] Re: [PATCH] virtio: invoke set_features on load
Date: Mon, 10 May 2010 07:41:25 -0700

"Michael S. Tsirkin" <address@hidden> wrote on 05/09/2010 09:42:09 AM:

> 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 <address@hidden>
> Signed-off-by: Michael S. Tsirkin <address@hidden>
> ---
> 
> David, a tested-by tag would be appreciated.

Tested-by: David L Stevens <address@hidden>

> 
>  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);
> -- 
> 1.7.1.12.g42b7f




reply via email to

[Prev in Thread] Current Thread [Next in Thread]