| 1 | /* |
| 2 | * HMP commands related to the block layer |
| 3 | * |
| 4 | * Copyright (c) 2003-2008 Fabrice Bellard |
| 5 | * Copyright (c) 2020 Red Hat, Inc. |
| 6 | * Copyright IBM, Corp. 2011 |
| 7 | * |
| 8 | * Authors: |
| 9 | * Anthony Liguori <aliguori@us.ibm.com> |
| 10 | * |
| 11 | * This work is licensed under the terms of the GNU GPL, version 2. See |
| 12 | * the COPYING file in the top-level directory. |
| 13 | */ |
| 14 | |
| 15 | #ifndef BLOCK_BLOCK_HMP_CMDS_H |
| 16 | #define BLOCK_BLOCK_HMP_CMDS_H |
| 17 | |
| 18 | #include "qemu/coroutine.h" |
| 19 | #include "monitor/hmp.h" |
| 20 | |
| 21 | void hmp_drive_add(MonitorHMP *hmp, const QDict *qdict); |
| 22 | |
| 23 | void hmp_commit(MonitorHMP *hmp, const QDict *qdict); |
| 24 | void hmp_drive_del(MonitorHMP *hmp, const QDict *qdict); |
| 25 | |
| 26 | void hmp_drive_mirror(MonitorHMP *hmp, const QDict *qdict); |
| 27 | void hmp_drive_backup(MonitorHMP *hmp, const QDict *qdict); |
| 28 | |
| 29 | void hmp_block_job_set_speed(MonitorHMP *hmp, const QDict *qdict); |
| 30 | void hmp_block_job_cancel(MonitorHMP *hmp, const QDict *qdict); |
| 31 | void hmp_block_job_pause(MonitorHMP *hmp, const QDict *qdict); |
| 32 | void hmp_block_job_resume(MonitorHMP *hmp, const QDict *qdict); |
| 33 | void hmp_block_job_complete(MonitorHMP *hmp, const QDict *qdict); |
| 34 | |
| 35 | void hmp_snapshot_blkdev(MonitorHMP *hmp, const QDict *qdict); |
| 36 | void hmp_snapshot_blkdev_internal(MonitorHMP *hmp, const QDict *qdict); |
| 37 | void hmp_snapshot_delete_blkdev_internal(MonitorHMP *hmp, const QDict *qdict); |
| 38 | |
| 39 | void hmp_nbd_server_start(MonitorHMP *hmp, const QDict *qdict); |
| 40 | void hmp_nbd_server_add(MonitorHMP *hmp, const QDict *qdict); |
| 41 | void hmp_nbd_server_remove(MonitorHMP *hmp, const QDict *qdict); |
| 42 | void hmp_nbd_server_stop(MonitorHMP *hmp, const QDict *qdict); |
| 43 | |
| 44 | void coroutine_fn hmp_block_resize(MonitorHMP *hmp, const QDict *qdict); |
| 45 | void hmp_block_stream(MonitorHMP *hmp, const QDict *qdict); |
| 46 | void hmp_block_passwd(MonitorHMP *hmp, const QDict *qdict); |
| 47 | void hmp_block_set_io_throttle(MonitorHMP *hmp, const QDict *qdict); |
| 48 | void hmp_eject(MonitorHMP *hmp, const QDict *qdict); |
| 49 | |
| 50 | void hmp_qemu_io(MonitorHMP *hmp, const QDict *qdict); |
| 51 | |
| 52 | void hmp_info_block(MonitorHMP *hmp, const QDict *qdict); |
| 53 | void hmp_info_blockstats(MonitorHMP *hmp, const QDict *qdict); |
| 54 | void hmp_info_block_jobs(MonitorHMP *hmp, const QDict *qdict); |
| 55 | void hmp_info_snapshots(MonitorHMP *hmp, const QDict *qdict); |
| 56 | |
| 57 | #endif |