| /openbmc/qemu/monitor/ |
| H A D | fds.c | 63 static bool monitor_add_fd(Monitor *mon, int fd, const char *fdname, Error **errp) in monitor_add_fd() argument 67 if (qemu_isdigit(fdname[0])) { in monitor_add_fd() 79 if (strcmp(monfd->name, fdname) != 0) { in monitor_add_fd() 92 monfd->name = g_strdup(fdname); in monitor_add_fd() 101 void qmp_getfd(const char *fdname, Error **errp) in qmp_getfd() argument 112 monitor_add_fd(cur_mon, fd, fdname, errp); in qmp_getfd() 116 void qmp_closefd(const char *fdname, Error **errp) in qmp_closefd() argument 124 if (strcmp(monfd->name, fdname) != 0) { in qmp_closefd() 139 error_setg(errp, "File descriptor named '%s' not found", fdname); in qmp_closefd() 142 int monitor_get_fd(Monitor *mon, const char *fdname, Error **errp) in monitor_get_fd() argument [all …]
|
| H A D | qmp-cmds.c | 116 void qmp_add_client(const char *protocol, const char *fdname, in qmp_add_client() argument 135 fd = monitor_get_fd(monitor_cur(), fdname, errp); in qmp_add_client()
|
| /openbmc/qemu/migration/ |
| H A D | fd.c | 52 void fd_start_outgoing_migration(MigrationState *s, const char *fdname, Error **errp) in fd_start_outgoing_migration() argument 55 int fd = monitor_get_fd(monitor_cur(), fdname, errp); in fd_start_outgoing_migration() 86 void fd_start_incoming_migration(const char *fdname, Error **errp) in fd_start_incoming_migration() argument 89 int fd = monitor_fd_param(monitor_cur(), fdname, errp); in fd_start_incoming_migration()
|
| H A D | fd.h | 19 void fd_start_incoming_migration(const char *fdname, Error **errp); 21 void fd_start_outgoing_migration(MigrationState *s, const char *fdname,
|
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | 045 | 152 self.vm.cmd('getfd', fdname='image0:r') 156 result = self.vm.qmp('getfd', fdname='0image0:r') 163 self.vm.cmd('getfd', fdname='image0:r') 164 self.vm.cmd('closefd', fdname='image0:r') 167 fdname = 'image0:r' 168 result = self.vm.qmp('closefd', fdname=fdname) 171 "File descriptor named '%s' not found" % fdname)
|
| H A D | 147 | 268 self.vm.cmd('getfd', fdname='nbd-fifo')
|
| /openbmc/qemu/qapi/ |
| H A D | misc.json | 19 # If the FD associated with @fdname is not a socket, the command will 26 # @fdname: file descriptor name previously passed via `getfd` command 42 'data': { 'protocol': 'str', 'fdname': 'str', '*skipauth': 'bool', 251 # @fdname: file descriptor name 255 # .. note:: If @fdname already exists, the file descriptor assigned to 266 { 'command': 'getfd', 'data': {'fdname': 'str'}, 'if': 'CONFIG_POSIX' } 278 # @fdname: file descriptor name 282 # .. note:: If @fdname already exists, the file descriptor assigned to 294 { 'command': 'get-win32-socket', 'data': {'info': 'str', 'fdname': 'str'}, 'if': 'CONFIG_WIN32' } 301 # @fdname: file descriptor name [all …]
|
| /openbmc/qemu/include/monitor/ |
| H A D | monitor.h | 31 int monitor_get_fd(Monitor *mon, const char *fdname, Error **errp); 32 int monitor_fd_param(Monitor *mon, const char *fdname, Error **errp);
|
| /openbmc/qemu/tests/unit/ |
| H A D | test-util-sockets.c | 56 int monitor_get_fd(Monitor *mon, const char *fdname, Error **errp) in monitor_get_fd() argument 60 if (mon_fd == -1 || !g_str_equal(mon_fdname, fdname)) { in monitor_get_fd() 61 error_setg(errp, "No fd named %s", fdname); in monitor_get_fd()
|