Home
last modified time | relevance | path

Searched refs:mon (Results 1 – 25 of 84) sorted by relevance

1234

/illumos-kvm-cmd/
H A Dmonitor.c206 return (mon->mc ? mon->mc->command_mode : 0); in qmp_cmd_mode()
249 if (mon && mon->outbuf_index != 0 && !mon->mux_out) { in monitor_flush()
250 qemu_chr_write(mon->chr, mon->outbuf, mon->outbuf_index); in monitor_flush()
265 mon->outbuf[mon->outbuf_index++] = '\r'; in monitor_puts()
266 mon->outbuf[mon->outbuf_index++] = c; in monitor_puts()
267 if (mon->outbuf_index >= (sizeof(mon->outbuf) - 1) in monitor_puts()
277 if (!mon) in monitor_vprintf()
485 if (monitor_ctrl_mode(mon) && qmp_cmd_mode(mon)) { in monitor_protocol_event()
664 cb_data->mon = mon; in user_async_cmd_handler()
680 cb_data->mon = mon; in user_async_info_handler()
[all …]
H A Dmigration.c94 if (qemu_savevm_state_blocked(mon)) { in do_migrate()
118 monitor_printf(mon, "migration failed\n"); in do_migrate()
204 monitor_printf(mon, "Migration status: %s\n", in do_info_migrate_print()
208 migrate_print_status(mon, "ram", qdict); in do_info_migrate_print()
266 s->mon = mon; in migrate_fd_monitor_suspend()
267 if (monitor_suspend(mon) == 0) { in migrate_fd_monitor_suspend()
301 if (s->mon) { in migrate_fd_cleanup()
302 monitor_resume(s->mon); in migrate_fd_cleanup()
333 if (s->mon) { in migrate_fd_put_buffer()
334 monitor_resume(s->mon); in migrate_fd_put_buffer()
[all …]
H A Dsysemu.h67 void do_savevm(Monitor *mon, const QDict *qdict);
69 void do_delvm(Monitor *mon, const QDict *qdict);
70 void do_info_snapshots(Monitor *mon);
80 bool qemu_savevm_state_blocked(Monitor *mon);
83 int qemu_savevm_state_iterate(Monitor *mon, QEMUFile *f);
89 void do_info_slirp(Monitor *mon);
165 void drive_hot_add(Monitor *mon, const QDict *qdict);
170 int do_pcie_aer_inejct_error(Monitor *mon,
187 void do_usb_add(Monitor *mon, const QDict *qdict);
188 void do_usb_del(Monitor *mon, const QDict *qdict);
[all …]
H A Dmigration.h46 Monitor *mon; member
58 int do_migrate(Monitor *mon, const QDict *qdict, QObject **ret_data);
60 int do_migrate_cancel(Monitor *mon, const QDict *qdict, QObject **ret_data);
66 int do_migrate_set_downtime(Monitor *mon, const QDict *qdict,
69 void do_info_migrate_print(Monitor *mon, const QObject *data);
71 void do_info_migrate(Monitor *mon, QObject **ret_data);
75 MigrationState *exec_start_outgoing_migration(Monitor *mon,
84 MigrationState *tcp_start_outgoing_migration(Monitor *mon,
93 MigrationState *unix_start_outgoing_migration(Monitor *mon,
102 MigrationState *fd_start_outgoing_migration(Monitor *mon,
[all …]
H A Dmonitor.h46 int monitor_suspend(Monitor *mon);
47 void monitor_resume(Monitor *mon);
49 int monitor_read_bdrv_key_start(Monitor *mon, BlockDriverState *bs,
53 int monitor_get_fd(Monitor *mon, const char *fdname);
55 void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
57 void monitor_printf(Monitor *mon, const char *fmt, ...) GCC_FMT_ATTR(2, 3);
58 void monitor_print_filename(Monitor *mon, const char *filename);
59 void monitor_flush(Monitor *mon);
63 void monitor_set_error(Monitor *mon, QError *qerror);
H A Dballoon.c67 Monitor *mon = opaque; in print_balloon_stat() local
70 monitor_printf(mon, ",%s=%" PRId64, key, in print_balloon_stat()
74 void monitor_print_balloon(Monitor *mon, const QObject *data) in monitor_print_balloon() argument
82 monitor_printf(mon, "balloon: actual=%" PRId64, in monitor_print_balloon()
84 qdict_iter(qdict, print_balloon_stat, mon); in monitor_print_balloon()
85 monitor_printf(mon, "\n"); in monitor_print_balloon()
109 int do_info_balloon(Monitor *mon, MonitorCompletion cb, void *opaque) in do_info_balloon() argument
130 int do_balloon(Monitor *mon, const QDict *params, in do_balloon() argument
H A Dblock-migration.c210 static int mig_save_device_bulk(Monitor *mon, QEMUFile *f, in mig_save_device_bulk() argument
286 Monitor *mon = opaque; in init_blk_migration_it() local
332 bdrv_iterate(init_blk_migration_it, mon); in init_blk_migration()
367 monitor_flush(mon); in blk_mig_save_bulked_block()
534 static void blk_mig_cleanup(Monitor *mon) in blk_mig_cleanup() argument
555 monitor_printf(mon, "\n"); in blk_mig_cleanup()
564 blk_mig_cleanup(mon); in block_save_live()
575 init_blk_migration(mon, f); in block_save_live()
584 blk_mig_cleanup(mon); in block_save_live()
612 blk_mig_cleanup(mon); in block_save_live()
[all …]
H A Dreadline.c36 monitor_printf(rs->mon, "%s", rs->prompt); in readline_show_prompt()
37 monitor_flush(rs->mon); in readline_show_prompt()
51 monitor_printf(rs->mon, "\033[D"); in readline_update()
57 monitor_printf(rs->mon, "*"); in readline_update()
61 monitor_printf(rs->mon, "\033[K"); in readline_update()
80 monitor_flush(rs->mon); in readline_update()
278 Monitor *mon = cur_mon; in readline_completion() local
302 monitor_printf(mon, "\n"); in readline_completion()
365 monitor_printf(rs->mon, "\n"); in readline_handle_byte()
466 ReadLineState *readline_init(Monitor *mon, in readline_init() argument
[all …]
H A Dblockdev.h59 void do_commit(Monitor *mon, const QDict *qdict);
60 int do_eject(Monitor *mon, const QDict *qdict, QObject **ret_data);
61 int do_block_set_passwd(Monitor *mon, const QDict *qdict, QObject **ret_data);
62 int do_change_block(Monitor *mon, const char *device,
64 int do_drive_del(Monitor *mon, const QDict *qdict, QObject **ret_data);
65 int do_snapshot_blkdev(Monitor *mon, const QDict *qdict, QObject **ret_data);
66 int do_block_resize(Monitor *mon, const QDict *qdict, QObject **ret_data);
H A Dinput.c201 Monitor *mon = opaque; in info_mice_iter() local
204 monitor_printf(mon, "%c Mouse #%" PRId64 ": %s%s\n", in info_mice_iter()
210 void do_info_mice_print(Monitor *mon, const QObject *data) in do_info_mice_print() argument
216 monitor_printf(mon, "No mouse devices connected\n"); in do_info_mice_print()
220 qlist_iter(mice_list, info_mice_iter, mon); in do_info_mice_print()
223 void do_info_mice(Monitor *mon, QObject **ret_data) in do_info_mice() argument
254 void do_mouse_set(Monitor *mon, const QDict *qdict) in do_mouse_set() argument
261 monitor_printf(mon, "No mouse devices connected\n"); in do_mouse_set()
274 monitor_printf(mon, "Mouse at given index not found\n"); in do_mouse_set()
H A Dnet.h105 VLANClientState *qemu_find_vlan_client_by_name(Monitor *mon, int vlan_id,
127 void do_info_network(Monitor *mon);
128 int do_set_link(Monitor *mon, const QDict *qdict, QObject **ret_data);
167 int net_client_init(Monitor *mon, QemuOpts *opts, int is_netdev);
172 void net_host_device_add(Monitor *mon, const QDict *qdict);
173 void net_host_device_remove(Monitor *mon, const QDict *qdict);
174 int do_netdev_add(Monitor *mon, const QDict *qdict, QObject **ret_data);
175 int do_netdev_del(Monitor *mon, const QDict *qdict, QObject **ret_data);
187 int net_handle_fd_param(Monitor *mon, const char *param);
H A Dnet.c348 qemu_find_vlan_client_by_name(Monitor *mon, int vlan_id, in qemu_find_vlan_client_by_name() argument
780 int net_handle_fd_param(Monitor *mon, const char *param) in net_handle_fd_param() argument
784 if (!qemu_isdigit(param[0]) && mon) { in net_handle_fd_param()
786 fd = monitor_get_fd(mon, param); in net_handle_fd_param()
804 Monitor *mon, in net_init_nic() argument
885 Monitor *mon,
1312 if (net_client_init(mon, opts, 0) < 0) { in net_host_device_add()
1344 res = net_client_init(mon, opts, 1); in do_netdev_add()
1367 void do_info_network(Monitor *mon) in do_info_network() argument
1379 monitor_printf(mon, "Devices not on any VLAN:\n"); in do_info_network()
[all …]
H A Dqemu-tool.c43 void monitor_set_error(Monitor *mon, QError *qerror) in monitor_set_error() argument
47 void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap) in monitor_vprintf() argument
51 void monitor_printf(Monitor *mon, const char *fmt, ...) in monitor_printf() argument
55 void monitor_print_filename(Monitor *mon, const char *filename) in monitor_print_filename() argument
H A Dsavevm.c1446 bool qemu_savevm_state_blocked(Monitor *mon) in qemu_savevm_state_blocked() argument
1497 qemu_savevm_state_cancel(mon, f); in qemu_savevm_state_begin()
1531 qemu_savevm_state_cancel(mon, f); in qemu_savevm_state_iterate()
1603 if (qemu_savevm_state_blocked(mon)) { in qemu_savevm_state()
1608 ret = qemu_savevm_state_begin(mon, f, 0, 0); in qemu_savevm_state()
1618 ret = qemu_savevm_state_complete(mon, f); in qemu_savevm_state()
1880 monitor_printf(mon, in del_existing_snapshots()
1976 ret = qemu_savevm_state(mon, f); in do_savevm()
2081 void do_delvm(Monitor *mon, const QDict *qdict) in do_delvm() argument
2099 monitor_printf(mon, in do_delvm()
[all …]
H A Dballoon.h28 void monitor_print_balloon(Monitor *mon, const QObject *data);
29 int do_info_balloon(Monitor *mon, MonitorCompletion cb, void *opaque);
30 int do_balloon(Monitor *mon, const QDict *params,
H A Dusb-bsd.c585 static void usb_info_device(Monitor *mon, int bus_num, int addr, int class_id, in usb_info_device() argument
607 monitor_printf(mon, " Device %d.%d, speed %s Mb/s\n", in usb_info_device()
611 monitor_printf(mon, " %s:", class_str); in usb_info_device()
613 monitor_printf(mon, " Class %02x:", class_id); in usb_info_device()
614 monitor_printf(mon, " USB device %04x:%04x", vendor_id, product_id); in usb_info_device()
616 monitor_printf(mon, ", %s", product_name); in usb_info_device()
617 monitor_printf(mon, "\n"); in usb_info_device()
627 Monitor *mon = opaque; in usb_host_info_device() local
629 usb_info_device(mon, bus_num, addr, class_id, vendor_id, product_id, in usb_host_info_device()
634 void usb_host_info(Monitor *mon) in usb_host_info() argument
[all …]
H A Dmigration-fd.c54 MigrationState *fd_start_outgoing_migration(Monitor *mon, in fd_start_outgoing_migration() argument
65 s->fd = monitor_get_fd(mon, fdname); in fd_start_outgoing_migration()
87 s->mon = NULL; in fd_start_outgoing_migration()
91 migrate_fd_monitor_suspend(s, mon); in fd_start_outgoing_migration()
/illumos-kvm-cmd/hw/
H A Dpci-hotplug.c38 static PCIDevice *qemu_pci_hot_add_nic(Monitor *mon, in qemu_pci_hot_add_nic() argument
63 ret = net_client_init(mon, opts, 0); in qemu_pci_hot_add_nic()
102 monitor_printf(mon, "OK bus %d, unit %d\n", in scsi_hot_add()
107 void drive_hot_add(Monitor *mon, const QDict *qdict) in drive_hot_add() argument
141 monitor_printf(mon, "OK\n"); in drive_hot_add()
155 static PCIDevice *qemu_pci_hot_add_storage(Monitor *mon, in qemu_pci_hot_add_storage() argument
176 monitor_printf(mon, "no if= specified\n"); in qemu_pci_hot_add_storage()
254 dev = qemu_pci_hot_add_nic(mon, pci_addr, opts); in pci_device_hot_add()
258 monitor_printf(mon, "invalid type: %s\n", type); in pci_device_hot_add()
267 monitor_printf(mon, "failed to add %s\n", opts); in pci_device_hot_add()
[all …]
H A Dpci-stub.c25 static void pci_error_message(Monitor *mon) in pci_error_message() argument
27 monitor_printf(mon, "PCI devices not supported\n"); in pci_error_message()
30 void do_pci_info(Monitor *mon, QObject **ret_data) in do_pci_info() argument
32 pci_error_message(mon); in do_pci_info()
35 void do_pci_info_print(Monitor *mon, const QObject *data) in do_pci_info_print() argument
37 pci_error_message(mon); in do_pci_info_print()
40 int do_pcie_aer_inejct_error(Monitor *mon, in do_pcie_aer_inejct_error() argument
43 pci_error_message(mon); in do_pcie_aer_inejct_error()
47 void pcie_aer_inject_error_print(Monitor *mon, const QObject *data) in pcie_aer_inject_error_print() argument
49 pci_error_message(mon); in pcie_aer_inject_error_print()
H A Dsun4m.h26 void slavio_pic_info(Monitor *mon, DeviceState *dev);
27 void slavio_irq_info(Monitor *mon, DeviceState *dev);
30 void sun4c_pic_info(Monitor *mon, void *opaque);
31 void sun4c_irq_info(Monitor *mon, void *opaque);
H A Dsun4c_intctl.c97 void sun4c_pic_info(Monitor *mon, void *opaque) in sun4c_pic_info() argument
101 monitor_printf(mon, "master: pending 0x%2.2x, enabled 0x%2.2x\n", in sun4c_pic_info()
105 void sun4c_irq_info(Monitor *mon, void *opaque) in sun4c_irq_info() argument
108 monitor_printf(mon, "irq statistic code not compiled.\n"); in sun4c_irq_info()
113 monitor_printf(mon, "IRQ statistics:\n"); in sun4c_irq_info()
116 monitor_printf(mon, " %" PRId64 "\n", count); in sun4c_irq_info()
/illumos-kvm-cmd/net/
H A Dslirp.h34 Monitor *mon,
38 void net_slirp_hostfwd_add(Monitor *mon, const QDict *qdict);
39 void net_slirp_hostfwd_remove(Monitor *mon, const QDict *qdict);
47 void do_info_usernet(Monitor *mon);
H A Dslirp.c291 monitor_printf(mon, "invalid device specified\n"); in slirp_lookup()
318 s = slirp_lookup(mon, arg1, arg2); in net_slirp_hostfwd_remove()
321 s = slirp_lookup(mon, NULL, NULL); in net_slirp_hostfwd_remove()
359 monitor_printf(mon, "invalid format\n"); in net_slirp_hostfwd_remove()
427 void net_slirp_hostfwd_add(Monitor *mon, const QDict *qdict) in net_slirp_hostfwd_add() argument
436 s = slirp_lookup(mon, arg1, arg2); in net_slirp_hostfwd_add()
439 s = slirp_lookup(mon, NULL, NULL); in net_slirp_hostfwd_add()
645 void do_info_usernet(Monitor *mon) in do_info_usernet() argument
650 monitor_printf(mon, "VLAN %d (%s):\n", in do_info_usernet()
653 slirp_connection_info(s->slirp, mon); in do_info_usernet()
[all …]
/illumos-kvm-cmd/ui/
H A Dspice-core.c340 Monitor *mon = opaque; in info_spice_iter() local
343 monitor_printf(mon, "Channel:\n"); in info_spice_iter()
344 monitor_printf(mon, " address: %s:%s%s\n", in info_spice_iter()
348 monitor_printf(mon, " session: %" PRId64 "\n", in info_spice_iter()
350 monitor_printf(mon, " channel: %d:%d\n", in info_spice_iter()
355 void do_info_spice_print(Monitor *mon, const QObject *data) in do_info_spice_print() argument
364 monitor_printf(mon, "Server: disabled\n"); in do_info_spice_print()
368 monitor_printf(mon, "Server:\n"); in do_info_spice_print()
382 monitor_printf(mon, "Channels: none\n"); in do_info_spice_print()
384 qlist_iter(channels, info_spice_iter, mon); in do_info_spice_print()
[all …]
/illumos-kvm-cmd/audio/
H A Dwavcapture.c87 Monitor *mon = cur_mon; in wav_start_capture() local
101 monitor_printf(mon, "incorrect bit count %d, must be 8 or 16\n", bits); in wav_start_capture()
106 monitor_printf(mon, "incorrect channel count %d, must be 1 or 2\n", in wav_start_capture()
135 monitor_printf(mon, "Failed to open wave file `%s'\nReason: %s\n", in wav_start_capture()
150 monitor_printf(mon, "Failed to add audio capture\n"); in wav_start_capture()

Completed in 142 milliseconds

1234