2020-03-08 10:24:32 +01:00
|
|
|
/*
|
|
|
|
* HMP commands related to the block layer
|
|
|
|
*
|
2020-03-08 10:24:33 +01:00
|
|
|
* Copyright (c) 2003-2008 Fabrice Bellard
|
2020-03-08 10:24:32 +01:00
|
|
|
* Copyright (c) 2020 Red Hat, Inc.
|
2020-03-08 10:24:34 +01:00
|
|
|
* Copyright IBM, Corp. 2011
|
2020-03-08 10:24:32 +01:00
|
|
|
*
|
2020-03-08 10:24:34 +01:00
|
|
|
* 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.
|
2020-03-08 10:24:32 +01:00
|
|
|
*/
|
|
|
|
|
2022-05-06 15:49:08 +02:00
|
|
|
#ifndef BLOCK_BLOCK_HMP_CMDS_H
|
|
|
|
#define BLOCK_BLOCK_HMP_CMDS_H
|
2020-03-08 10:24:32 +01:00
|
|
|
|
2022-12-21 14:35:49 +01:00
|
|
|
#include "qemu/coroutine.h"
|
|
|
|
|
2020-03-08 10:24:32 +01:00
|
|
|
void hmp_drive_add(Monitor *mon, const QDict *qdict);
|
|
|
|
|
2020-03-08 10:24:33 +01:00
|
|
|
void hmp_commit(Monitor *mon, const QDict *qdict);
|
|
|
|
void hmp_drive_del(Monitor *mon, const QDict *qdict);
|
|
|
|
|
2020-03-08 10:24:34 +01:00
|
|
|
void hmp_drive_mirror(Monitor *mon, const QDict *qdict);
|
|
|
|
void hmp_drive_backup(Monitor *mon, const QDict *qdict);
|
|
|
|
|
2020-03-08 10:24:35 +01:00
|
|
|
void hmp_block_job_set_speed(Monitor *mon, const QDict *qdict);
|
|
|
|
void hmp_block_job_cancel(Monitor *mon, const QDict *qdict);
|
|
|
|
void hmp_block_job_pause(Monitor *mon, const QDict *qdict);
|
|
|
|
void hmp_block_job_resume(Monitor *mon, const QDict *qdict);
|
|
|
|
void hmp_block_job_complete(Monitor *mon, const QDict *qdict);
|
|
|
|
|
2020-03-08 10:24:36 +01:00
|
|
|
void hmp_snapshot_blkdev(Monitor *mon, const QDict *qdict);
|
|
|
|
void hmp_snapshot_blkdev_internal(Monitor *mon, const QDict *qdict);
|
|
|
|
void hmp_snapshot_delete_blkdev_internal(Monitor *mon, const QDict *qdict);
|
|
|
|
|
2020-03-08 10:24:37 +01:00
|
|
|
void hmp_nbd_server_start(Monitor *mon, const QDict *qdict);
|
|
|
|
void hmp_nbd_server_add(Monitor *mon, const QDict *qdict);
|
|
|
|
void hmp_nbd_server_remove(Monitor *mon, const QDict *qdict);
|
|
|
|
void hmp_nbd_server_stop(Monitor *mon, const QDict *qdict);
|
|
|
|
|
2022-10-13 14:36:50 +02:00
|
|
|
void coroutine_fn hmp_block_resize(Monitor *mon, const QDict *qdict);
|
2020-03-08 10:24:38 +01:00
|
|
|
void hmp_block_stream(Monitor *mon, const QDict *qdict);
|
|
|
|
void hmp_block_passwd(Monitor *mon, const QDict *qdict);
|
|
|
|
void hmp_block_set_io_throttle(Monitor *mon, const QDict *qdict);
|
|
|
|
void hmp_eject(Monitor *mon, const QDict *qdict);
|
|
|
|
|
|
|
|
void hmp_qemu_io(Monitor *mon, const QDict *qdict);
|
|
|
|
|
2020-03-08 10:24:39 +01:00
|
|
|
void hmp_info_block(Monitor *mon, const QDict *qdict);
|
|
|
|
void hmp_info_blockstats(Monitor *mon, const QDict *qdict);
|
|
|
|
void hmp_info_block_jobs(Monitor *mon, const QDict *qdict);
|
|
|
|
void hmp_info_snapshots(Monitor *mon, const QDict *qdict);
|
2020-03-08 10:24:38 +01:00
|
|
|
|
2020-03-08 10:24:32 +01:00
|
|
|
#endif
|