]> git.proxmox.com Git - qemu-server.git/commit
parse nbd_protocol_version if available
authorMira Limbeck <m.limbeck@proxmox.com>
Tue, 17 Mar 2020 19:56:11 +0000 (20:56 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 18 Mar 2020 07:03:44 +0000 (08:03 +0100)
commitc4ac8f713caa54ae94b3ca3d22d98ca2ef62e669
tree810a160bbccd6d6cdb07dd4ba31682b81fe20361
parenteb8cddb55eb79ea512813be05dd2fef581419250
parse nbd_protocol_version if available

For secure live migration with local disks via NBD over a unix socket,
we have to somehow communicate from the source node to the target node
if it supports it. This is because there can only be one NBD server with
exactly one socket bound.

The source node passes that information via STDIN. Support for
'spice_ticket: (...)' is added in addition to 'nbd_protocol_version:
<version>'. As old source nodes send the spice ticket without a prefix,
we still have to have a fallback for this case. New information should
always be passed via a prefix that is matched, otherwise it will be
recognized as spice ticket.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
PVE/API2/Qemu.pm