]> git.proxmox.com Git - mirror_qemu.git/blame - include/monitor/hmp.h
i386/xen: add monitor commands to test event injection
[mirror_qemu.git] / include / monitor / hmp.h
CommitLineData
48a32bed
AL
1/*
2 * Human Monitor Interface
3 *
4 * Copyright IBM, Corp. 2011
5 *
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
8 *
9 * This work is licensed under the terms of the GNU GPL, version 2. See
10 * the COPYING file in the top-level directory.
11 *
12 */
13
14#ifndef HMP_H
15#define HMP_H
16
bfa40f77 17#include "qemu/readline.h"
f9429c67 18#include "qapi/qapi-types-common.h"
48a32bed 19
0ca117a7 20bool hmp_handle_error(Monitor *mon, Error *err);
5ec92f2d 21void hmp_help_cmd(Monitor *mon, const char *name);
0d79271b 22strList *hmp_split_at_comma(const char *str);
3950a377 23
84f2d0ea
WX
24void hmp_info_name(Monitor *mon, const QDict *qdict);
25void hmp_info_version(Monitor *mon, const QDict *qdict);
26void hmp_info_kvm(Monitor *mon, const QDict *qdict);
27void hmp_info_status(Monitor *mon, const QDict *qdict);
28void hmp_info_uuid(Monitor *mon, const QDict *qdict);
29void hmp_info_chardev(Monitor *mon, const QDict *qdict);
30void hmp_info_mice(Monitor *mon, const QDict *qdict);
31void hmp_info_migrate(Monitor *mon, const QDict *qdict);
32void hmp_info_migrate_capabilities(Monitor *mon, const QDict *qdict);
50e9a629 33void hmp_info_migrate_parameters(Monitor *mon, const QDict *qdict);
84f2d0ea 34void hmp_info_cpus(Monitor *mon, const QDict *qdict);
84f2d0ea
WX
35void hmp_info_vnc(Monitor *mon, const QDict *qdict);
36void hmp_info_spice(Monitor *mon, const QDict *qdict);
37void hmp_info_balloon(Monitor *mon, const QDict *qdict);
61b97833
HP
38void hmp_info_irq(Monitor *mon, const QDict *qdict);
39void hmp_info_pic(Monitor *mon, const QDict *qdict);
f4b2c02a 40void hmp_info_rdma(Monitor *mon, const QDict *qdict);
84f2d0ea 41void hmp_info_pci(Monitor *mon, const QDict *qdict);
d1a0cf73 42void hmp_info_tpm(Monitor *mon, const QDict *qdict);
62313160 43void hmp_info_iothreads(Monitor *mon, const QDict *qdict);
7a7f325e 44void hmp_quit(Monitor *mon, const QDict *qdict);
5f158f21 45void hmp_stop(Monitor *mon, const QDict *qdict);
dd12e1bb 46void hmp_sync_profile(Monitor *mon, const QDict *qdict);
38d22653 47void hmp_system_reset(Monitor *mon, const QDict *qdict);
5bc465e4 48void hmp_system_powerdown(Monitor *mon, const QDict *qdict);
8e8581e6 49void hmp_exit_preconfig(Monitor *mon, const QDict *qdict);
544f6ea3 50void hmp_announce_self(Monitor *mon, const QDict *qdict);
755f1968 51void hmp_cpu(Monitor *mon, const QDict *qdict);
0cfd6a9a 52void hmp_memsave(Monitor *mon, const QDict *qdict);
6d3962bf 53void hmp_pmemsave(Monitor *mon, const QDict *qdict);
3949e594
MA
54void hmp_ringbuf_write(Monitor *mon, const QDict *qdict);
55void hmp_ringbuf_read(Monitor *mon, const QDict *qdict);
e42e818b 56void hmp_cont(Monitor *mon, const QDict *qdict);
9b9df25a 57void hmp_system_wakeup(Monitor *mon, const QDict *qdict);
3e5a50d6 58void hmp_nmi(Monitor *mon, const QDict *qdict);
ae71d13d 59void hmp_info_network(Monitor *mon, const QDict *qdict);
4b37156c 60void hmp_set_link(Monitor *mon, const QDict *qdict);
d72f3264 61void hmp_balloon(Monitor *mon, const QDict *qdict);
52b26205 62void hmp_loadvm(Monitor *mon, const QDict *qdict);
d9c7d137 63void hmp_savevm(Monitor *mon, const QDict *qdict);
d905bb7b 64void hmp_delvm(Monitor *mon, const QDict *qdict);
6cdedb07 65void hmp_migrate_cancel(Monitor *mon, const QDict *qdict);
94ae12cb 66void hmp_migrate_continue(Monitor *mon, const QDict *qdict);
bf1ae1f4 67void hmp_migrate_incoming(Monitor *mon, const QDict *qdict);
3b563c4b 68void hmp_migrate_recover(Monitor *mon, const QDict *qdict);
d37297dc 69void hmp_migrate_pause(Monitor *mon, const QDict *qdict);
00458433 70void hmp_migrate_set_capability(Monitor *mon, const QDict *qdict);
50e9a629 71void hmp_migrate_set_parameter(Monitor *mon, const QDict *qdict);
b8a185bc 72void hmp_client_migrate_info(Monitor *mon, const QDict *qdict);
4886a1bc 73void hmp_migrate_start_postcopy(Monitor *mon, const QDict *qdict);
d89e666e 74void hmp_x_colo_lost_heartbeat(Monitor *mon, const QDict *qdict);
fbf796fd 75void hmp_set_password(Monitor *mon, const QDict *qdict);
9ad5372d 76void hmp_expire_password(Monitor *mon, const QDict *qdict);
333a96ec 77void hmp_change(Monitor *mon, const QDict *qdict);
f916a175
MA
78#ifdef CONFIG_VNC
79void hmp_change_vnc(Monitor *mon, const char *device, const char *target,
80 const char *arg, const char *read_only, bool force,
81 Error **errp);
82#endif
fa1d2f8f
MA
83void hmp_change_medium(Monitor *mon, const char *device, const char *target,
84 const char *arg, const char *read_only, bool force,
85 Error **errp);
e1c37d0e 86void hmp_migrate(Monitor *mon, const QDict *qdict);
318660f8 87void hmp_device_add(Monitor *mon, const QDict *qdict);
a15fef21 88void hmp_device_del(Monitor *mon, const QDict *qdict);
783e9b48 89void hmp_dump_guest_memory(Monitor *mon, const QDict *qdict);
928059a3 90void hmp_netdev_add(Monitor *mon, const QDict *qdict);
5f964155 91void hmp_netdev_del(Monitor *mon, const QDict *qdict);
208c9d1b
CB
92void hmp_getfd(Monitor *mon, const QDict *qdict);
93void hmp_closefd(Monitor *mon, const QDict *qdict);
5011d262
MA
94void hmp_mouse_move(Monitor *mon, const QDict *qdict);
95void hmp_mouse_button(Monitor *mon, const QDict *qdict);
ec843b97 96void hmp_mouse_set(Monitor *mon, const QDict *qdict);
3e5a50d6 97void hmp_sendkey(Monitor *mon, const QDict *qdict);
6894ee2b 98void coroutine_fn hmp_screendump(Monitor *mon, const QDict *qdict);
f1088908 99void hmp_chardev_add(Monitor *mon, const QDict *qdict);
75b60160 100void hmp_chardev_change(Monitor *mon, const QDict *qdict);
f1088908 101void hmp_chardev_remove(Monitor *mon, const QDict *qdict);
bd1d5ad9 102void hmp_chardev_send_break(Monitor *mon, const QDict *qdict);
cff8b2c6 103void hmp_object_add(Monitor *mon, const QDict *qdict);
ab2d0531 104void hmp_object_del(Monitor *mon, const QDict *qdict);
eb1539b2 105void hmp_info_memdev(Monitor *mon, const QDict *qdict);
55225c85 106void hmp_info_numa(Monitor *mon, const QDict *qdict);
a631892f 107void hmp_info_memory_devices(Monitor *mon, const QDict *qdict);
89d7fa9e 108void hmp_qom_list(Monitor *mon, const QDict *qdict);
89cf4fe3 109void hmp_qom_get(Monitor *mon, const QDict *qdict);
c0e6ee9e 110void hmp_qom_set(Monitor *mon, const QDict *qdict);
3950a377 111void hmp_info_qom_tree(Monitor *mon, const QDict *dict);
8a828798
LV
112void hmp_virtio_query(Monitor *mon, const QDict *qdict);
113void hmp_virtio_status(Monitor *mon, const QDict *qdict);
114void hmp_virtio_queue_status(Monitor *mon, const QDict *qdict);
115void hmp_vhost_queue_status(Monitor *mon, const QDict *qdict);
116void hmp_virtio_queue_element(Monitor *mon, const QDict *qdict);
507cb64d
JM
117void hmp_xen_event_inject(Monitor *mon, const QDict *qdict);
118void hmp_xen_event_list(Monitor *mon, const QDict *qdict);
bfa40f77
HB
119void object_add_completion(ReadLineState *rs, int nb_args, const char *str);
120void object_del_completion(ReadLineState *rs, int nb_args, const char *str);
2da1b3ab
HB
121void device_add_completion(ReadLineState *rs, int nb_args, const char *str);
122void device_del_completion(ReadLineState *rs, int nb_args, const char *str);
29136cd8 123void sendkey_completion(ReadLineState *rs, int nb_args, const char *str);
6297d9a2 124void chardev_remove_completion(ReadLineState *rs, int nb_args, const char *str);
13e315da 125void chardev_add_completion(ReadLineState *rs, int nb_args, const char *str);
40d19394 126void set_link_completion(ReadLineState *rs, int nb_args, const char *str);
b162b49a 127void netdev_add_completion(ReadLineState *rs, int nb_args, const char *str);
11b389f2 128void netdev_del_completion(ReadLineState *rs, int nb_args, const char *str);
8e597779 129void ringbuf_write_completion(ReadLineState *rs, int nb_args, const char *str);
bd71211d 130void info_trace_events_completion(ReadLineState *rs, int nb_args, const char *str);
987bd270 131void trace_event_completion(ReadLineState *rs, int nb_args, const char *str);
d0ece345
HB
132void watchdog_action_completion(ReadLineState *rs, int nb_args,
133 const char *str);
c68a0409
HB
134void migrate_set_capability_completion(ReadLineState *rs, int nb_args,
135 const char *str);
50e9a629
LL
136void migrate_set_parameter_completion(ReadLineState *rs, int nb_args,
137 const char *str);
b21631f3
HB
138void delvm_completion(ReadLineState *rs, int nb_args, const char *str);
139void loadvm_completion(ReadLineState *rs, int nb_args, const char *str);
fafa4d50
SF
140void hmp_rocker(Monitor *mon, const QDict *qdict);
141void hmp_rocker_ports(Monitor *mon, const QDict *qdict);
142void hmp_rocker_of_dpa_flows(Monitor *mon, const QDict *qdict);
143void hmp_rocker_of_dpa_groups(Monitor *mon, const QDict *qdict);
4a6b52d6 144void hmp_info_dump(Monitor *mon, const QDict *qdict);
be9b23c4 145void hmp_info_ramblock(Monitor *mon, const QDict *qdict);
d2d8d46f 146void hmp_hotpluggable_cpus(Monitor *mon, const QDict *qdict);
39164c13 147void hmp_info_vm_generation_id(Monitor *mon, const QDict *qdict);
d0f63c1e 148void hmp_info_memory_size_summary(Monitor *mon, const QDict *qdict);
e3b09ad2 149void hmp_info_replay(Monitor *mon, const QDict *qdict);
e7510671
PD
150void hmp_replay_break(Monitor *mon, const QDict *qdict);
151void hmp_replay_delete_break(Monitor *mon, const QDict *qdict);
f6baed3d 152void hmp_replay_seek(Monitor *mon, const QDict *qdict);
a4a571d9
PX
153void hmp_info_dirty_rate(Monitor *mon, const QDict *qdict);
154void hmp_calc_dirty_rate(Monitor *mon, const QDict *qdict);
f3b2e38c
HH
155void hmp_set_vcpu_dirty_limit(Monitor *mon, const QDict *qdict);
156void hmp_cancel_vcpu_dirty_limit(Monitor *mon, const QDict *qdict);
157void hmp_info_vcpu_dirty_limit(Monitor *mon, const QDict *qdict);
f9429c67
DB
158void hmp_human_readable_text_helper(Monitor *mon,
159 HumanReadableText *(*qmp_handler)(Error **));
433815f5 160void hmp_info_stats(Monitor *mon, const QDict *qdict);
bab46b81
MA
161void hmp_singlestep(Monitor *mon, const QDict *qdict);
162void hmp_watchdog_action(Monitor *mon, const QDict *qdict);
d0e67298 163void hmp_pcie_aer_inject_error(Monitor *mon, const QDict *qdict);
98b5362b
MA
164void hmp_info_capture(Monitor *mon, const QDict *qdict);
165void hmp_stopcapture(Monitor *mon, const QDict *qdict);
166void hmp_wavcapture(Monitor *mon, const QDict *qdict);
29b62a10
MA
167void hmp_trace_event(Monitor *mon, const QDict *qdict);
168void hmp_trace_file(Monitor *mon, const QDict *qdict);
169void hmp_info_trace_events(Monitor *mon, const QDict *qdict);
cbf81997
MA
170void hmp_help(Monitor *mon, const QDict *qdict);
171void hmp_info_help(Monitor *mon, const QDict *qdict);
172void hmp_info_sync_profile(Monitor *mon, const QDict *qdict);
173void hmp_info_history(Monitor *mon, const QDict *qdict);
174void hmp_logfile(Monitor *mon, const QDict *qdict);
175void hmp_log(Monitor *mon, const QDict *qdict);
176void hmp_gdbserver(Monitor *mon, const QDict *qdict);
177void hmp_print(Monitor *mon, const QDict *qdict);
178void hmp_sum(Monitor *mon, const QDict *qdict);
179void hmp_ioport_read(Monitor *mon, const QDict *qdict);
180void hmp_ioport_write(Monitor *mon, const QDict *qdict);
181void hmp_boot_set(Monitor *mon, const QDict *qdict);
182void hmp_info_mtree(Monitor *mon, const QDict *qdict);
48a32bed
AL
183
184#endif