Home
last modified time | relevance | path

Searched refs:fdname (Results 1 – 12 of 12) sorted by relevance

/openbmc/qemu/monitor/
H A Dfds.c67 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()
124 if (strcmp(monfd->name, fdname) != 0) { in qmp_closefd()
150 if (strcmp(monfd->name, fdname) != 0) { in monitor_get_fd()
499 if (!qemu_isdigit(fdname[0]) && mon) { in monitor_fd_param()
500 fd = monitor_get_fd(mon, fdname, errp); in monitor_fd_param()
502 fd = qemu_parse_fd(fdname); in monitor_fd_param()
[all …]
H A Dqmp-cmds.c118 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()
H A Dhmp-cmds.c173 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()
/openbmc/qemu/migration/
H A Dfd.c29 void fd_start_outgoing_migration(MigrationState *s, const char *fdname, Error **errp) in fd_start_outgoing_migration() argument
32 int fd = monitor_get_fd(monitor_cur(), fdname, errp); in fd_start_outgoing_migration()
63 void fd_start_incoming_migration(const char *fdname, Error **errp) in fd_start_incoming_migration() argument
66 int fd = monitor_fd_param(monitor_cur(), fdname, errp); in fd_start_incoming_migration()
H A Dfd.h19 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 D045152 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 D147268 self.vm.cmd('getfd', fdname='nbd-fifo')
/openbmc/qemu/qapi/
H A Dmisc.json17 # 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 Dmonitor.h31 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 Dtest-util-sockets.c56 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 Dkvm_main.c1047 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 Dhmp-commands.hx1505 .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