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 */
  14#ifndef HMP_H
  15#define HMP_H
  17#include "qemu-common.h"
  18#include "qemu/readline.h"
  19#include "qapi-types.h"
  20#include "qapi/qmp/qdict.h"
  22void hmp_info_name(Monitor *mon, const QDict *qdict);
  23void hmp_info_version(Monitor *mon, const QDict *qdict);
  24void hmp_info_kvm(Monitor *mon, const QDict *qdict);
  25void hmp_info_status(Monitor *mon, const QDict *qdict);
  26void hmp_info_uuid(Monitor *mon, const QDict *qdict);
  27void hmp_info_chardev(Monitor *mon, const QDict *qdict);
  28void hmp_info_mice(Monitor *mon, const QDict *qdict);
  29void hmp_info_migrate(Monitor *mon, const QDict *qdict);
  30void hmp_info_migrate_capabilities(Monitor *mon, const QDict *qdict);
  31void hmp_info_migrate_parameters(Monitor *mon, const QDict *qdict);
  32void hmp_info_migrate_cache_size(Monitor *mon, const QDict *qdict);
  33void hmp_info_cpus(Monitor *mon, const QDict *qdict);
  34void hmp_info_block(Monitor *mon, const QDict *qdict);
  35void hmp_info_blockstats(Monitor *mon, const QDict *qdict);
  36void hmp_info_vnc(Monitor *mon, const QDict *qdict);
  37void hmp_info_spice(Monitor *mon, const QDict *qdict);
  38void hmp_info_balloon(Monitor *mon, const QDict *qdict);
  39void hmp_info_pci(Monitor *mon, const QDict *qdict);
  40void hmp_info_block_jobs(Monitor *mon, const QDict *qdict);
  41void hmp_info_tpm(Monitor *mon, const QDict *qdict);
  42void hmp_info_iothreads(Monitor *mon, const QDict *qdict);
  43void hmp_quit(Monitor *mon, const QDict *qdict);
  44void hmp_stop(Monitor *mon, const QDict *qdict);
  45void hmp_system_reset(Monitor *mon, const QDict *qdict);
  46void hmp_system_powerdown(Monitor *mon, const QDict *qdict);
  47void hmp_cpu(Monitor *mon, const QDict *qdict);
  48void hmp_memsave(Monitor *mon, const QDict *qdict);
  49void hmp_pmemsave(Monitor *mon, const QDict *qdict);
  50void hmp_ringbuf_write(Monitor *mon, const QDict *qdict);
  51void hmp_ringbuf_read(Monitor *mon, const QDict *qdict);
  52void hmp_cont(Monitor *mon, const QDict *qdict);
  53void hmp_system_wakeup(Monitor *mon, const QDict *qdict);
  54void hmp_nmi(Monitor *mon, const QDict *qdict);
  55void hmp_set_link(Monitor *mon, const QDict *qdict);
  56void hmp_block_passwd(Monitor *mon, const QDict *qdict);
  57void hmp_balloon(Monitor *mon, const QDict *qdict);
  58void hmp_block_resize(Monitor *mon, const QDict *qdict);
  59void hmp_snapshot_blkdev(Monitor *mon, const QDict *qdict);
  60void hmp_snapshot_blkdev_internal(Monitor *mon, const QDict *qdict);
  61void hmp_snapshot_delete_blkdev_internal(Monitor *mon, const QDict *qdict);
  62void hmp_drive_mirror(Monitor *mon, const QDict *qdict);
  63void hmp_drive_backup(Monitor *mon, const QDict *qdict);
  64void hmp_migrate_cancel(Monitor *mon, const QDict *qdict);
  65void hmp_migrate_incoming(Monitor *mon, const QDict *qdict);
  66void hmp_migrate_set_downtime(Monitor *mon, const QDict *qdict);
  67void hmp_migrate_set_speed(Monitor *mon, const QDict *qdict);
  68void hmp_migrate_set_capability(Monitor *mon, const QDict *qdict);
  69void hmp_migrate_set_parameter(Monitor *mon, const QDict *qdict);
  70void hmp_migrate_set_cache_size(Monitor *mon, const QDict *qdict);
  71void hmp_client_migrate_info(Monitor *mon, const QDict *qdict);
  72void hmp_migrate_start_postcopy(Monitor *mon, const QDict *qdict);
  73void hmp_set_password(Monitor *mon, const QDict *qdict);
  74void hmp_expire_password(Monitor *mon, const QDict *qdict);
  75void hmp_eject(Monitor *mon, const QDict *qdict);
  76void hmp_change(Monitor *mon, const QDict *qdict);
  77void hmp_block_set_io_throttle(Monitor *mon, const QDict *qdict);
  78void hmp_block_stream(Monitor *mon, const QDict *qdict);
  79void hmp_block_job_set_speed(Monitor *mon, const QDict *qdict);
  80void hmp_block_job_cancel(Monitor *mon, const QDict *qdict);
  81void hmp_block_job_pause(Monitor *mon, const QDict *qdict);
  82void hmp_block_job_resume(Monitor *mon, const QDict *qdict);
  83void hmp_block_job_complete(Monitor *mon, const QDict *qdict);
  84void hmp_migrate(Monitor *mon, const QDict *qdict);
  85void hmp_device_add(Monitor *mon, const QDict *qdict);
  86void hmp_device_del(Monitor *mon, const QDict *qdict);
  87void hmp_dump_guest_memory(Monitor *mon, const QDict *qdict);
  88void hmp_netdev_add(Monitor *mon, const QDict *qdict);
  89void hmp_netdev_del(Monitor *mon, const QDict *qdict);
  90void hmp_getfd(Monitor *mon, const QDict *qdict);
  91void hmp_closefd(Monitor *mon, const QDict *qdict);
  92void hmp_sendkey(Monitor *mon, const QDict *qdict);
  93void hmp_screendump(Monitor *mon, const QDict *qdict);
  94void hmp_nbd_server_start(Monitor *mon, const QDict *qdict);
  95void hmp_nbd_server_add(Monitor *mon, const QDict *qdict);
  96void hmp_nbd_server_stop(Monitor *mon, const QDict *qdict);
  97void hmp_chardev_add(Monitor *mon, const QDict *qdict);
  98void hmp_chardev_remove(Monitor *mon, const QDict *qdict);
  99void hmp_qemu_io(Monitor *mon, const QDict *qdict);
 100void hmp_cpu_add(Monitor *mon, const QDict *qdict);
 101void hmp_object_add(Monitor *mon, const QDict *qdict);
 102void hmp_object_del(Monitor *mon, const QDict *qdict);
 103void hmp_info_memdev(Monitor *mon, const QDict *qdict);
 104void hmp_info_memory_devices(Monitor *mon, const QDict *qdict);
 105void hmp_qom_list(Monitor *mon, const QDict *qdict);
 106void hmp_qom_set(Monitor *mon, const QDict *qdict);
 107void object_add_completion(ReadLineState *rs, int nb_args, const char *str);
 108void object_del_completion(ReadLineState *rs, int nb_args, const char *str);
 109void device_add_completion(ReadLineState *rs, int nb_args, const char *str);
 110void device_del_completion(ReadLineState *rs, int nb_args, const char *str);
 111void sendkey_completion(ReadLineState *rs, int nb_args, const char *str);
 112void chardev_remove_completion(ReadLineState *rs, int nb_args, const char *str);
 113void chardev_add_completion(ReadLineState *rs, int nb_args, const char *str);
 114void set_link_completion(ReadLineState *rs, int nb_args, const char *str);
 115void netdev_add_completion(ReadLineState *rs, int nb_args, const char *str);
 116void netdev_del_completion(ReadLineState *rs, int nb_args, const char *str);
 117void ringbuf_write_completion(ReadLineState *rs, int nb_args, const char *str);
 118void trace_event_completion(ReadLineState *rs, int nb_args, const char *str);
 119void watchdog_action_completion(ReadLineState *rs, int nb_args,
 120                                const char *str);
 121void migrate_set_capability_completion(ReadLineState *rs, int nb_args,
 122                                       const char *str);
 123void migrate_set_parameter_completion(ReadLineState *rs, int nb_args,
 124                                      const char *str);
 125void host_net_add_completion(ReadLineState *rs, int nb_args, const char *str);
 126void host_net_remove_completion(ReadLineState *rs, int nb_args,
 127                                const char *str);
 128void delvm_completion(ReadLineState *rs, int nb_args, const char *str);
 129void loadvm_completion(ReadLineState *rs, int nb_args, const char *str);
 130void hmp_rocker(Monitor *mon, const QDict *qdict);
 131void hmp_rocker_ports(Monitor *mon, const QDict *qdict);
 132void hmp_rocker_of_dpa_flows(Monitor *mon, const QDict *qdict);
 133void hmp_rocker_of_dpa_groups(Monitor *mon, const QDict *qdict);
 134void hmp_info_dump(Monitor *mon, const QDict *qdict);