]> www.infradead.org Git - users/dwmw2/qemu.git/commit
tests/qtest/migration: Add a precopy file test with fdset
authorFabiano Rosas <farosas@suse.de>
Mon, 17 Jun 2024 18:57:19 +0000 (15:57 -0300)
committerFabiano Rosas <farosas@suse.de>
Thu, 20 Jun 2024 13:42:24 +0000 (10:42 -0300)
commit926554c0bfdfbf7b058ed370c2b484e56b126d34
tree91f1ab56412d9f321b0e624fcf37579bf384b1d8
parent55fc0c2f68ec81cc51f39964cf6d1bf3f7467a4f
tests/qtest/migration: Add a precopy file test with fdset

Add a test for file migration using fdset. The passing of fds is more
complex than using a file path. This is also the scenario where it's
most important we ensure that the initial migration stream offset is
respected because the fdset interface is the one used by the
management layer when providing a non empty migration file.

Note that fd passing is not available on Windows, so anything that
uses add-fd needs to exclude that platform.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
tests/qtest/migration-test.c