/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 | hmp-cmds.c | 173 const char *fdname = qdict_get_str(qdict, "fdname"); in hmp_getfd() local 176 qmp_getfd(fdname, &err); in hmp_getfd() 183 const char *fdname = qdict_get_str(qdict, "fdname"); in hmp_closefd() local 186 qmp_closefd(fdname, &err); in hmp_closefd()
|
H A D | qmp-cmds.c | 118 void qmp_add_client(const char *protocol, const char *fdname, in qmp_add_client() argument 137 fd = monitor_get_fd(monitor_cur(), fdname, errp); in qmp_add_client()
|
/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/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/qapi/ |
H A D | misc.json | 17 # If the FD associated with @fdname is not a socket, the command will 24 # @fdname: file descriptor name previously passed via 'getfd' command 40 '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()
|
/openbmc/linux/virt/kvm/ |
H A D | kvm_main.c | 1047 static int kvm_create_vm_debugfs(struct kvm *kvm, const char *fdname) in kvm_create_vm_debugfs() argument 1061 snprintf(dir_name, sizeof(dir_name), "%d-%s", task_pid_nr(current), fdname); in kvm_create_vm_debugfs() 1150 static struct kvm *kvm_create_vm(unsigned long type, const char *fdname) in kvm_create_vm() argument 1242 r = kvm_create_vm_debugfs(kvm, fdname); in kvm_create_vm() 5079 char fdname[ITOA_MAX_LEN + 1]; in kvm_dev_ioctl_create_vm() local 5088 snprintf(fdname, sizeof(fdname), "%d", fd); in kvm_dev_ioctl_create_vm() 5090 kvm = kvm_create_vm(type, fdname); in kvm_dev_ioctl_create_vm()
|
/openbmc/qemu/ |
H A D | hmp-commands.hx | 1505 .args_type = "fdname:s", 1513 ``getfd`` *fdname* 1515 mechanism on unix sockets, it is stored using the name *fdname* for 1522 .args_type = "fdname:s", 1530 ``closefd`` *fdname* 1531 Close the file descriptor previously assigned to *fdname* using the
|