diff options
author | Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> | 2011-11-03 16:57:25 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-12-05 14:51:35 +0100 |
commit | 0563e191516289c9d2f282a8c50f2eecef2fa773 (patch) | |
tree | ede6d148a62baf0b2cb2fc067403a48464f2cc91 /qemu-config.c | |
parent | 3535a9c6bef5234ab4df3f143763a0e89a1ad29c (diff) | |
download | qemu-0563e191516289c9d2f282a8c50f2eecef2fa773.zip qemu-0563e191516289c9d2f282a8c50f2eecef2fa773.tar.gz qemu-0563e191516289c9d2f282a8c50f2eecef2fa773.tar.bz2 |
block: add the blockio limits command line support
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-config.c')
-rw-r--r-- | qemu-config.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/qemu-config.c b/qemu-config.c index 597d7e1..1aa080f 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -85,6 +85,30 @@ static QemuOptsList qemu_drive_opts = { .name = "readonly", .type = QEMU_OPT_BOOL, .help = "open drive file as read-only", + },{ + .name = "iops", + .type = QEMU_OPT_NUMBER, + .help = "limit total I/O operations per second", + },{ + .name = "iops_rd", + .type = QEMU_OPT_NUMBER, + .help = "limit read operations per second", + },{ + .name = "iops_wr", + .type = QEMU_OPT_NUMBER, + .help = "limit write operations per second", + },{ + .name = "bps", + .type = QEMU_OPT_NUMBER, + .help = "limit total bytes per second", + },{ + .name = "bps_rd", + .type = QEMU_OPT_NUMBER, + .help = "limit read bytes per second", + },{ + .name = "bps_wr", + .type = QEMU_OPT_NUMBER, + .help = "limit write bytes per second", }, { /* end of list */ } }, |