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 1552581c71SMarkus Armbruster #ifndef BLOCK_BLOCK_HMP_CMDS_H 1652581c71SMarkus Armbruster #define BLOCK_BLOCK_HMP_CMDS_H 17a2dde2f2SMaxim Levitsky 18*e2c1c34fSMarkus Armbruster #include "qemu/coroutine.h" 19*e2c1c34fSMarkus Armbruster 20a2dde2f2SMaxim Levitsky void hmp_drive_add(Monitor *mon, const QDict *qdict); 21a2dde2f2SMaxim Levitsky 22a1edae27SMaxim Levitsky void hmp_commit(Monitor *mon, const QDict *qdict); 23a1edae27SMaxim Levitsky void hmp_drive_del(Monitor *mon, const QDict *qdict); 24a1edae27SMaxim Levitsky 250932e3f2SMaxim Levitsky void hmp_drive_mirror(Monitor *mon, const QDict *qdict); 260932e3f2SMaxim Levitsky void hmp_drive_backup(Monitor *mon, const QDict *qdict); 270932e3f2SMaxim Levitsky 286b7fbf61SMaxim Levitsky void hmp_block_job_set_speed(Monitor *mon, const QDict *qdict); 296b7fbf61SMaxim Levitsky void hmp_block_job_cancel(Monitor *mon, const QDict *qdict); 306b7fbf61SMaxim Levitsky void hmp_block_job_pause(Monitor *mon, const QDict *qdict); 316b7fbf61SMaxim Levitsky void hmp_block_job_resume(Monitor *mon, const QDict *qdict); 326b7fbf61SMaxim Levitsky void hmp_block_job_complete(Monitor *mon, const QDict *qdict); 336b7fbf61SMaxim Levitsky 34fce2b91fSMaxim Levitsky void hmp_snapshot_blkdev(Monitor *mon, const QDict *qdict); 35fce2b91fSMaxim Levitsky void hmp_snapshot_blkdev_internal(Monitor *mon, const QDict *qdict); 36fce2b91fSMaxim Levitsky void hmp_snapshot_delete_blkdev_internal(Monitor *mon, const QDict *qdict); 37fce2b91fSMaxim Levitsky 38e263120eSMaxim Levitsky void hmp_nbd_server_start(Monitor *mon, const QDict *qdict); 39e263120eSMaxim Levitsky void hmp_nbd_server_add(Monitor *mon, const QDict *qdict); 40e263120eSMaxim Levitsky void hmp_nbd_server_remove(Monitor *mon, const QDict *qdict); 41e263120eSMaxim Levitsky void hmp_nbd_server_stop(Monitor *mon, const QDict *qdict); 42e263120eSMaxim Levitsky 436894ee2bSAlberto Faria void coroutine_fn hmp_block_resize(Monitor *mon, const QDict *qdict); 441061f8ddSMaxim Levitsky void hmp_block_stream(Monitor *mon, const QDict *qdict); 451061f8ddSMaxim Levitsky void hmp_block_passwd(Monitor *mon, const QDict *qdict); 461061f8ddSMaxim Levitsky void hmp_block_set_io_throttle(Monitor *mon, const QDict *qdict); 471061f8ddSMaxim Levitsky void hmp_eject(Monitor *mon, const QDict *qdict); 481061f8ddSMaxim Levitsky 491061f8ddSMaxim Levitsky void hmp_qemu_io(Monitor *mon, const QDict *qdict); 501061f8ddSMaxim Levitsky 512bcad73cSMaxim Levitsky void hmp_info_block(Monitor *mon, const QDict *qdict); 522bcad73cSMaxim Levitsky void hmp_info_blockstats(Monitor *mon, const QDict *qdict); 532bcad73cSMaxim Levitsky void hmp_info_block_jobs(Monitor *mon, const QDict *qdict); 542bcad73cSMaxim Levitsky void hmp_info_snapshots(Monitor *mon, const QDict *qdict); 551061f8ddSMaxim Levitsky 56a2dde2f2SMaxim Levitsky #endif 57