On Thu, Mar 31, 2022 at 11:08:47AM -0400, Peter Xu wrote: > Create a new socket for postcopy to be prepared to send postcopy requested > pages via this specific channel, so as to not get blocked by precopy pages. > > A new thread is also created on dest qemu to receive data from this new > channel > based on the ram_load_postcopy() routine. > > The ram_load_postcopy(POSTCOPY) branch and the thread has not started to > function, and that'll be done in follow up patches. > > Cleanup the new sockets on both src/dst QEMUs, meanwhile look after the new > thread too to make sure it'll be recycled properly. > > Signed-off-by: Peter Xu <pet...@redhat.com> > --- > migration/migration.c | 62 +++++++++++++++++++++++---- > migration/migration.h | 8 ++++ > migration/postcopy-ram.c | 92 ++++++++++++++++++++++++++++++++++++++-- > migration/postcopy-ram.h | 10 +++++ > migration/ram.c | 25 ++++++++--- > migration/ram.h | 4 +- > migration/savevm.c | 20 ++++----- > migration/socket.c | 22 +++++++++- > migration/socket.h | 1 + > migration/trace-events | 5 ++- > 10 files changed, 218 insertions(+), 31 deletions(-)
Reviewed-by: Daniel P. Berrangé <berra...@redhat.com> With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|