Thomas Huth <th...@redhat.com> wrote: > On 04.10.2017 12:39, Juan Quintela wrote: >> Signed-off-by: Juan Quintela <quint...@redhat.com>
> > Looks like a lot of this code is the same or very similar to the code in > postcopy-test.c ... would it make sense to factor-out that code there > into a separate file that could be used by both tests, so that we do not > have to maintain the code twice? I think I put that on the cover letter, my idea is to add the postcopy test here. This is a streamlined version of the postcopy-test, just a barebones, and insntead of doing things by hand, I added helpers like: migrate_set_parameter(...); You can see that on the following patches I added support for: - tcp - precopy with deprecated commands - xbzrle - compression threads (not working at the momment, have to investigate why). Idea is if people like the approach to add on top of that: - exec: migration (needs changes because command line option on source and destination are different) - fd: Dunno how difficult is, I have really never passed fd's around. - postocpy: It needs additional commandsn to be added. - Probably move to use events, instead of "waiting" for 1st stage to finish. Right now, the three tests on my laptop require around 14 seconds (not running in parallel). I want to "optimize" the tests to take a bit less time. Later, Juan.