On Wed, Sep 07, 2016 at 05:20:49PM +0200, Ladi Prosek wrote:
> The statistics virtqueue is not migrated properly because virtio-balloon
> does not include s->stats_vq_elem in the migration stream.
> 
> After migration the statistics virtqueue hangs because the host never
> completes the last element (s->stats_vq_elem is NULL on the destination
> QEMU).  Therefore the guest never submits new elements and the virtqueue
> is hung.
> 
> Instead of changing the migration stream format in an incompatible way,
> detect the migration case and rewind the virtqueue so the last element
> can be completed.
> 
> Cc: Michael S. Tsirkin <m...@redhat.com>
> Cc: Roman Kagan <rka...@virtuozzo.com>
> Cc: Stefan Hajnoczi <stefa...@redhat.com>
> Suggested-by: Roman Kagan <rka...@virtuozzo.com>
> Signed-off-by: Ladi Prosek <lpro...@redhat.com>
> ---
>  hw/virtio/virtio-balloon.c | 13 +++++++++++++
>  1 file changed, 13 insertions(+)

Reviewed-by: Roman Kagan <rka...@virtuozzo.com>

Reply via email to