hmp.h 6.11 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/*
 * Human Monitor Interface
 *
 * Copyright IBM, Corp. 2011
 *
 * Authors:
 *  Anthony Liguori   <aliguori@us.ibm.com>
 *
 * This work is licensed under the terms of the GNU GPL, version 2.  See
 * the COPYING file in the top-level directory.
 *
 */

#ifndef HMP_H
#define HMP_H

#include "qemu-common.h"
18
#include "qemu/readline.h"
19
#include "qapi-types.h"
20
#include "qapi/qmp/qdict.h"
21

22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
void hmp_info_name(Monitor *mon, const QDict *qdict);
void hmp_info_version(Monitor *mon, const QDict *qdict);
void hmp_info_kvm(Monitor *mon, const QDict *qdict);
void hmp_info_status(Monitor *mon, const QDict *qdict);
void hmp_info_uuid(Monitor *mon, const QDict *qdict);
void hmp_info_chardev(Monitor *mon, const QDict *qdict);
void hmp_info_mice(Monitor *mon, const QDict *qdict);
void hmp_info_migrate(Monitor *mon, const QDict *qdict);
void hmp_info_migrate_capabilities(Monitor *mon, const QDict *qdict);
void hmp_info_migrate_cache_size(Monitor *mon, const QDict *qdict);
void hmp_info_cpus(Monitor *mon, const QDict *qdict);
void hmp_info_block(Monitor *mon, const QDict *qdict);
void hmp_info_blockstats(Monitor *mon, const QDict *qdict);
void hmp_info_vnc(Monitor *mon, const QDict *qdict);
void hmp_info_spice(Monitor *mon, const QDict *qdict);
void hmp_info_balloon(Monitor *mon, const QDict *qdict);
void hmp_info_pci(Monitor *mon, const QDict *qdict);
void hmp_info_block_jobs(Monitor *mon, const QDict *qdict);
40
void hmp_info_tpm(Monitor *mon, const QDict *qdict);
Luiz Capitulino's avatar
Luiz Capitulino committed
41
void hmp_quit(Monitor *mon, const QDict *qdict);
Luiz Capitulino's avatar
Luiz Capitulino committed
42
void hmp_stop(Monitor *mon, const QDict *qdict);
43
void hmp_system_reset(Monitor *mon, const QDict *qdict);
44
void hmp_system_powerdown(Monitor *mon, const QDict *qdict);
45
void hmp_cpu(Monitor *mon, const QDict *qdict);
Luiz Capitulino's avatar
Luiz Capitulino committed
46
void hmp_memsave(Monitor *mon, const QDict *qdict);
Luiz Capitulino's avatar
Luiz Capitulino committed
47
void hmp_pmemsave(Monitor *mon, const QDict *qdict);
48 49
void hmp_ringbuf_write(Monitor *mon, const QDict *qdict);
void hmp_ringbuf_read(Monitor *mon, const QDict *qdict);
Luiz Capitulino's avatar
Luiz Capitulino committed
50
void hmp_cont(Monitor *mon, const QDict *qdict);
51
void hmp_system_wakeup(Monitor *mon, const QDict *qdict);
52
void hmp_inject_nmi(Monitor *mon, const QDict *qdict);
Luiz Capitulino's avatar
Luiz Capitulino committed
53
void hmp_set_link(Monitor *mon, const QDict *qdict);
54
void hmp_block_passwd(Monitor *mon, const QDict *qdict);
Luiz Capitulino's avatar
Luiz Capitulino committed
55
void hmp_balloon(Monitor *mon, const QDict *qdict);
56
void hmp_block_resize(Monitor *mon, const QDict *qdict);
57
void hmp_snapshot_blkdev(Monitor *mon, const QDict *qdict);
58
void hmp_snapshot_blkdev_internal(Monitor *mon, const QDict *qdict);
59
void hmp_snapshot_delete_blkdev_internal(Monitor *mon, const QDict *qdict);
60
void hmp_drive_mirror(Monitor *mon, const QDict *qdict);
61
void hmp_drive_backup(Monitor *mon, const QDict *qdict);
62
void hmp_migrate_cancel(Monitor *mon, const QDict *qdict);
63
void hmp_migrate_set_downtime(Monitor *mon, const QDict *qdict);
64
void hmp_migrate_set_speed(Monitor *mon, const QDict *qdict);
65
void hmp_migrate_set_capability(Monitor *mon, const QDict *qdict);
66
void hmp_migrate_set_cache_size(Monitor *mon, const QDict *qdict);
67
void hmp_set_password(Monitor *mon, const QDict *qdict);
68
void hmp_expire_password(Monitor *mon, const QDict *qdict);
Luiz Capitulino's avatar
Luiz Capitulino committed
69
void hmp_eject(Monitor *mon, const QDict *qdict);
Luiz Capitulino's avatar
Luiz Capitulino committed
70
void hmp_change(Monitor *mon, const QDict *qdict);
71
void hmp_block_set_io_throttle(Monitor *mon, const QDict *qdict);
72
void hmp_block_stream(Monitor *mon, const QDict *qdict);
73
void hmp_block_job_set_speed(Monitor *mon, const QDict *qdict);
74
void hmp_block_job_cancel(Monitor *mon, const QDict *qdict);
75 76
void hmp_block_job_pause(Monitor *mon, const QDict *qdict);
void hmp_block_job_resume(Monitor *mon, const QDict *qdict);
77
void hmp_block_job_complete(Monitor *mon, const QDict *qdict);
Luiz Capitulino's avatar
Luiz Capitulino committed
78
void hmp_migrate(Monitor *mon, const QDict *qdict);
79
void hmp_device_del(Monitor *mon, const QDict *qdict);
80
void hmp_dump_guest_memory(Monitor *mon, const QDict *qdict);
81
void hmp_netdev_add(Monitor *mon, const QDict *qdict);
82
void hmp_netdev_del(Monitor *mon, const QDict *qdict);
83 84
void hmp_getfd(Monitor *mon, const QDict *qdict);
void hmp_closefd(Monitor *mon, const QDict *qdict);
Amos Kong's avatar
Amos Kong committed
85
void hmp_send_key(Monitor *mon, const QDict *qdict);
86
void hmp_screen_dump(Monitor *mon, const QDict *qdict);
87 88 89
void hmp_nbd_server_start(Monitor *mon, const QDict *qdict);
void hmp_nbd_server_add(Monitor *mon, const QDict *qdict);
void hmp_nbd_server_stop(Monitor *mon, const QDict *qdict);
90 91
void hmp_chardev_add(Monitor *mon, const QDict *qdict);
void hmp_chardev_remove(Monitor *mon, const QDict *qdict);
92
void hmp_qemu_io(Monitor *mon, const QDict *qdict);
93
void hmp_cpu_add(Monitor *mon, const QDict *qdict);
94
void hmp_object_add(Monitor *mon, const QDict *qdict);
95
void hmp_object_del(Monitor *mon, const QDict *qdict);
Hu Tao's avatar
Hu Tao committed
96
void hmp_info_memdev(Monitor *mon, const QDict *qdict);
97
void hmp_info_memory_devices(Monitor *mon, const QDict *qdict);
98 99
void object_add_completion(ReadLineState *rs, int nb_args, const char *str);
void object_del_completion(ReadLineState *rs, int nb_args, const char *str);
100 101
void device_add_completion(ReadLineState *rs, int nb_args, const char *str);
void device_del_completion(ReadLineState *rs, int nb_args, const char *str);
102
void sendkey_completion(ReadLineState *rs, int nb_args, const char *str);
103
void chardev_remove_completion(ReadLineState *rs, int nb_args, const char *str);
104
void chardev_add_completion(ReadLineState *rs, int nb_args, const char *str);
105
void set_link_completion(ReadLineState *rs, int nb_args, const char *str);
106
void netdev_add_completion(ReadLineState *rs, int nb_args, const char *str);
107
void netdev_del_completion(ReadLineState *rs, int nb_args, const char *str);
108 109
void ringbuf_write_completion(ReadLineState *rs, int nb_args, const char *str);
void ringbuf_read_completion(ReadLineState *rs, int nb_args, const char *str);
110 111
void watchdog_action_completion(ReadLineState *rs, int nb_args,
                                const char *str);
112 113
void migrate_set_capability_completion(ReadLineState *rs, int nb_args,
                                       const char *str);
114
void host_net_add_completion(ReadLineState *rs, int nb_args, const char *str);
115 116
void host_net_remove_completion(ReadLineState *rs, int nb_args,
                                const char *str);
117 118
void delvm_completion(ReadLineState *rs, int nb_args, const char *str);
void loadvm_completion(ReadLineState *rs, int nb_args, const char *str);
119 120

#endif