dump: Recognize "fd:" protocols on Windows hosts
commitf8c49724cbe13fa30b5893eff33f9ccee7e4466a
authorMarkus Armbruster <armbru@redhat.com>
Tue, 31 Oct 2023 10:45:29 +0000 (31 11:45 +0100)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 2 Nov 2023 14:40:50 +0000 (2 18:40 +0400)
treecd233c4deed339ce4e1f43cc6e03f2c8076b5d70
parent96afbc571c91b115ba51d9740352a0e45111edc9
dump: Recognize "fd:" protocols on Windows hosts

A few QMP command can work with named file descriptors.

The only way to create a named file descriptor used to be QMP command
getfd, which only works on POSIX hosts.  Thus, named file descriptors
were actually usable only there.

They became usable on Windows hosts when we added QMP command
get-win32-socket (commit 4cda177c601 "qmp: add 'get-win32-socket'").

Except in dump-guest-memory, because qmp_dump_guest_memory() compiles
its named file descriptor code only #if !defined(WIN32).

Compile it unconditionally, like we do for the other commands
supporting them.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20231031104531.3169721-4-armbru@redhat.com>
dump/dump.c