xref: /openbmc/qemu/include/block/block-hmp-cmds.h (revision 52581c718c5cd55595ca032a56f1e194c5716456)
1a2dde2f2SMaxim Levitsky /*
2a2dde2f2SMaxim Levitsky  * HMP commands related to the block layer
3a2dde2f2SMaxim Levitsky  *
4a1edae27SMaxim Levitsky  * Copyright (c) 2003-2008 Fabrice Bellard
5a2dde2f2SMaxim Levitsky  * Copyright (c) 2020 Red Hat, Inc.
60932e3f2SMaxim Levitsky  * Copyright IBM, Corp. 2011
7a2dde2f2SMaxim Levitsky  *
80932e3f2SMaxim Levitsky  * Authors:
90932e3f2SMaxim Levitsky  *  Anthony Liguori   <aliguori@us.ibm.com>
100932e3f2SMaxim Levitsky  *
110932e3f2SMaxim Levitsky  * This work is licensed under the terms of the GNU GPL, version 2.  See
120932e3f2SMaxim Levitsky  * the COPYING file in the top-level directory.
13a2dde2f2SMaxim Levitsky  */
14a2dde2f2SMaxim Levitsky 
15*52581c71SMarkus Armbruster #ifndef BLOCK_BLOCK_HMP_CMDS_H
16*52581c71SMarkus Armbruster #define BLOCK_BLOCK_HMP_CMDS_H
17a2dde2f2SMaxim Levitsky 
18a2dde2f2SMaxim Levitsky void hmp_drive_add(Monitor *mon, const QDict *qdict);
19a2dde2f2SMaxim Levitsky 
20a1edae27SMaxim Levitsky void hmp_commit(Monitor *mon, const QDict *qdict);
21a1edae27SMaxim Levitsky void hmp_drive_del(Monitor *mon, const QDict *qdict);
22a1edae27SMaxim Levitsky 
230932e3f2SMaxim Levitsky void hmp_drive_mirror(Monitor *mon, const QDict *qdict);
240932e3f2SMaxim Levitsky void hmp_drive_backup(Monitor *mon, const QDict *qdict);
250932e3f2SMaxim Levitsky 
266b7fbf61SMaxim Levitsky void hmp_block_job_set_speed(Monitor *mon, const QDict *qdict);
276b7fbf61SMaxim Levitsky void hmp_block_job_cancel(Monitor *mon, const QDict *qdict);
286b7fbf61SMaxim Levitsky void hmp_block_job_pause(Monitor *mon, const QDict *qdict);
296b7fbf61SMaxim Levitsky void hmp_block_job_resume(Monitor *mon, const QDict *qdict);
306b7fbf61SMaxim Levitsky void hmp_block_job_complete(Monitor *mon, const QDict *qdict);
316b7fbf61SMaxim Levitsky 
32fce2b91fSMaxim Levitsky void hmp_snapshot_blkdev(Monitor *mon, const QDict *qdict);
33fce2b91fSMaxim Levitsky void hmp_snapshot_blkdev_internal(Monitor *mon, const QDict *qdict);
34fce2b91fSMaxim Levitsky void hmp_snapshot_delete_blkdev_internal(Monitor *mon, const QDict *qdict);
35fce2b91fSMaxim Levitsky 
36e263120eSMaxim Levitsky void hmp_nbd_server_start(Monitor *mon, const QDict *qdict);
37e263120eSMaxim Levitsky void hmp_nbd_server_add(Monitor *mon, const QDict *qdict);
38e263120eSMaxim Levitsky void hmp_nbd_server_remove(Monitor *mon, const QDict *qdict);
39e263120eSMaxim Levitsky void hmp_nbd_server_stop(Monitor *mon, const QDict *qdict);
40e263120eSMaxim Levitsky 
411061f8ddSMaxim Levitsky void hmp_block_resize(Monitor *mon, const QDict *qdict);
421061f8ddSMaxim Levitsky void hmp_block_stream(Monitor *mon, const QDict *qdict);
431061f8ddSMaxim Levitsky void hmp_block_passwd(Monitor *mon, const QDict *qdict);
441061f8ddSMaxim Levitsky void hmp_block_set_io_throttle(Monitor *mon, const QDict *qdict);
451061f8ddSMaxim Levitsky void hmp_eject(Monitor *mon, const QDict *qdict);
461061f8ddSMaxim Levitsky 
471061f8ddSMaxim Levitsky void hmp_qemu_io(Monitor *mon, const QDict *qdict);
481061f8ddSMaxim Levitsky 
492bcad73cSMaxim Levitsky void hmp_info_block(Monitor *mon, const QDict *qdict);
502bcad73cSMaxim Levitsky void hmp_info_blockstats(Monitor *mon, const QDict *qdict);
512bcad73cSMaxim Levitsky void hmp_info_block_jobs(Monitor *mon, const QDict *qdict);
522bcad73cSMaxim Levitsky void hmp_info_snapshots(Monitor *mon, const QDict *qdict);
531061f8ddSMaxim Levitsky 
54a2dde2f2SMaxim Levitsky #endif
55