qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] migration: fix live migration failure with comp


From: Dr. David Alan Gilbert
Subject: Re: [Qemu-devel] [PATCH] migration: fix live migration failure with compression
Date: Tue, 9 Aug 2016 16:46:35 +0100
User-agent: Mutt/1.6.2 (2016-07-01)

* Liang Li (address@hidden) wrote:
> Because of commit 11808bb0c422, which remove some condition checks
> of 'f->ops->writev_buffer', 'qemu_put_qemu_file' should be enhanced
> to clear the 'f_src->iovcnt', or 'f_src->iovcnt' may exceed the
> MAX_IOV_SIZE which will break live migration. This should be fixed.
> 
> Signed-off-by: Liang Li <address@hidden>
> Reported-by: Jinshi Zhang <address@hidden>
> ---
>  migration/qemu-file.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/migration/qemu-file.c b/migration/qemu-file.c
> index bbc565e..e9fae31 100644
> --- a/migration/qemu-file.c
> +++ b/migration/qemu-file.c
> @@ -668,6 +668,7 @@ int qemu_put_qemu_file(QEMUFile *f_des, QEMUFile *f_src)
>          len = f_src->buf_index;
>          qemu_put_buffer(f_des, f_src->buf, f_src->buf_index);
>          f_src->buf_index = 0;
> +        f_src->iovcnt = 0;
>      }

If you're just using the buf[] in the src, how does it end up incrementing
the iovcnt?

Dave

>      return len;
>  }
> -- 
> 1.9.1
> 
--
Dr. David Alan Gilbert / address@hidden / Manchester, UK



reply via email to

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