Yury Kotov 61053d4826 migration: Fix fd protocol for incoming defer
Currently, incoming migration through fd supports only command-line case:
E.g.
    fork();
    fd = open();
    exec("qemu ... -incoming fd:%d", fd);

It's possible to use add-fd commands to pass fd for migration, but it's
invalid case. add-fd works with fdset but not with particular fds.

To work with getfd in incoming defer it's enough to use monitor_fd_param
instead of strtol. monitor_fd_param supports both cases:
* fd:123
* fd:fd_name (added by getfd).

And also the use of monitor_fd_param improves error messages.

Signed-off-by: Yury Kotov <yury-kotov@yandex-team.ru>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2019-06-05 12:43:55 +02:00
..
2019-06-04 15:22:22 +02:00
2018-07-10 12:48:53 +01:00
2019-03-07 12:46:31 +01:00
2018-06-15 14:40:56 +01:00
2019-03-12 15:18:40 +01:00
2019-03-25 18:15:43 +00:00
2018-11-27 15:35:15 +01:00
2017-05-18 18:04:54 +02:00
2017-05-18 18:04:54 +02:00