Re: [Qemu-devel] [PATCH] migration: Guard ram_bytes_remaining against early call

2017-12-27 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > Calling ram_bytes_remaining during the early part of setup is unsafe > because the ram_state isn't yet initialised. > > This can happen in the sequence: >migrate >migrate_cancel >info migrate > > if the migrate

Re: [Qemu-devel] [PATCH] migration: Guard ram_bytes_remaining against early call

2017-12-18 Thread Peter Xu
On Fri, Dec 15, 2017 at 11:51:23AM +, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > Calling ram_bytes_remaining during the early part of setup is unsafe > because the ram_state isn't yet initialised. > > This can happen in the sequence: >migrate >migrate_ca

[Qemu-devel] [PATCH] migration: Guard ram_bytes_remaining against early call

2017-12-15 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Calling ram_bytes_remaining during the early part of setup is unsafe because the ram_state isn't yet initialised. This can happen in the sequence: migrate migrate_cancel info migrate if the migrate sticks trying to connect (e.g. to an unresponsive destina