diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2021-01-28 21:07:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-28 21:07:28 +0000 |
commit | 387f05dbd953e0f5669c2e98f4a0e6b95687cc62 (patch) | |
tree | 2a0e00d7aa49df09f93899423a5e7b0d5276ae86 /samples | |
parent | d83300a9a5e3dda56a38cd55b995ccaa00f3188a (diff) | |
download | libvfio-user-387f05dbd953e0f5669c2e98f4a0e6b95687cc62.zip libvfio-user-387f05dbd953e0f5669c2e98f4a0e6b95687cc62.tar.gz libvfio-user-387f05dbd953e0f5669c2e98f4a0e6b95687cc62.tar.bz2 |
client/server: don't sleep before migrating (#281)
Migration now takes a non-trivial amount of time, plus running the
sample through Valgrind will inherently be slower.
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/client.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/samples/client.c b/samples/client.c index 0ba844e..d5b3027 100644 --- a/samples/client.c +++ b/samples/client.c @@ -1270,14 +1270,6 @@ int main(int argc, char *argv[]) errx(EXIT_FAILURE, "failed to write to BAR0: %s", strerror(-ret)); } - /* - * By sleeping here for 1s after migration finishes on the source server - * (but not yet started on the destination server), the timer should be - * armed on the destination server for 2-1=1 seconds. If we don't sleep - * then it will be armed for 2 seconds, which isn't as interesting. - */ - sleep(1); - nr_iters = migrate_from(sock, migr_reg_index, &nr_iters, &migr_iters, md5sum, bar1_size); |