summary refs log tree commit diff stats
path: root/monitor/fds.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* monitor: restrict command getfd to POSIX hostsMarc-André Lureau2023-03-131-0/+2
| | | | | | | | | | | | | | | | | | Currently, the function will simply fail if ancillary fds are not provided, for ex on unsupported platforms. This changes the failure from: {"error": {"class": "GenericError", "desc": "No file descriptor supplied via SCM_RIGHTS"}} to: {"error": {"class": "CommandNotFound", "desc": "The command getfd has not been found"}} Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
* qmp: add 'get-win32-socket'Marc-André Lureau2023-03-131-16/+60
| | | | | | | | | | A process with enough capabilities can duplicate a socket to QEMU. Add a QMP command to import it and add it to the monitor fd list, so it can be later used by other commands. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20230306122751.2355515-9-marcandre.lureau@redhat.com>
* monitor: release the lock before calling close()Marc-André Lureau2023-03-131-1/+4
| | | | | | | | | As per comment, presumably to avoid syscall in critical section. Fixes: 0210c3b39bef08 ("monitor: Use LOCK_GUARD macros") Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230306122751.2355515-7-marcandre.lureau@redhat.com>
* monitor: Split file descriptor passing stuff off misc.cMarkus Armbruster2023-02-041-0/+468
Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20230124121946.1139465-27-armbru@redhat.com>