]> git.proxmox.com Git - mirror_qemu.git/blame - include/qemu/throttle-options.h
i386: Update new x86_apicid parsing rules with die_offset support
[mirror_qemu.git] / include / qemu / throttle-options.h
CommitLineData
a2a7862c
PJ
1/*
2 * QEMU throttling command line options
3 *
4 * This work is licensed under the terms of the GNU GPL, version 2 or
5 * (at your option) any later version.
6 *
7 * See the COPYING file in the top-level directory for details.
8 *
9 */
10#ifndef THROTTLE_OPTIONS_H
11#define THROTTLE_OPTIONS_H
12
432d889e
MP
13#define QEMU_OPT_IOPS_TOTAL "iops-total"
14#define QEMU_OPT_IOPS_TOTAL_MAX "iops-total-max"
15#define QEMU_OPT_IOPS_TOTAL_MAX_LENGTH "iops-total-max-length"
16#define QEMU_OPT_IOPS_READ "iops-read"
17#define QEMU_OPT_IOPS_READ_MAX "iops-read-max"
18#define QEMU_OPT_IOPS_READ_MAX_LENGTH "iops-read-max-length"
19#define QEMU_OPT_IOPS_WRITE "iops-write"
20#define QEMU_OPT_IOPS_WRITE_MAX "iops-write-max"
21#define QEMU_OPT_IOPS_WRITE_MAX_LENGTH "iops-write-max-length"
22#define QEMU_OPT_BPS_TOTAL "bps-total"
23#define QEMU_OPT_BPS_TOTAL_MAX "bps-total-max"
24#define QEMU_OPT_BPS_TOTAL_MAX_LENGTH "bps-total-max-length"
25#define QEMU_OPT_BPS_READ "bps-read"
26#define QEMU_OPT_BPS_READ_MAX "bps-read-max"
27#define QEMU_OPT_BPS_READ_MAX_LENGTH "bps-read-max-length"
28#define QEMU_OPT_BPS_WRITE "bps-write"
29#define QEMU_OPT_BPS_WRITE_MAX "bps-write-max"
30#define QEMU_OPT_BPS_WRITE_MAX_LENGTH "bps-write-max-length"
31#define QEMU_OPT_IOPS_SIZE "iops-size"
d8e7d87e 32#define QEMU_OPT_THROTTLE_GROUP_NAME "throttle-group"
432d889e
MP
33
34#define THROTTLE_OPT_PREFIX "throttling."
a2a7862c
PJ
35#define THROTTLE_OPTS \
36 { \
432d889e 37 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_TOTAL,\
a2a7862c
PJ
38 .type = QEMU_OPT_NUMBER,\
39 .help = "limit total I/O operations per second",\
40 },{ \
432d889e 41 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_READ,\
a2a7862c
PJ
42 .type = QEMU_OPT_NUMBER,\
43 .help = "limit read operations per second",\
44 },{ \
432d889e 45 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_WRITE,\
a2a7862c
PJ
46 .type = QEMU_OPT_NUMBER,\
47 .help = "limit write operations per second",\
48 },{ \
432d889e 49 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_TOTAL,\
a2a7862c
PJ
50 .type = QEMU_OPT_NUMBER,\
51 .help = "limit total bytes per second",\
52 },{ \
432d889e 53 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_READ,\
a2a7862c
PJ
54 .type = QEMU_OPT_NUMBER,\
55 .help = "limit read bytes per second",\
56 },{ \
432d889e 57 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_WRITE,\
a2a7862c
PJ
58 .type = QEMU_OPT_NUMBER,\
59 .help = "limit write bytes per second",\
60 },{ \
432d889e 61 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_TOTAL_MAX,\
a2a7862c
PJ
62 .type = QEMU_OPT_NUMBER,\
63 .help = "I/O operations burst",\
64 },{ \
432d889e 65 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_READ_MAX,\
a2a7862c
PJ
66 .type = QEMU_OPT_NUMBER,\
67 .help = "I/O operations read burst",\
68 },{ \
432d889e 69 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_WRITE_MAX,\
a2a7862c
PJ
70 .type = QEMU_OPT_NUMBER,\
71 .help = "I/O operations write burst",\
72 },{ \
432d889e 73 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_TOTAL_MAX,\
a2a7862c
PJ
74 .type = QEMU_OPT_NUMBER,\
75 .help = "total bytes burst",\
76 },{ \
432d889e 77 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_READ_MAX,\
a2a7862c
PJ
78 .type = QEMU_OPT_NUMBER,\
79 .help = "total bytes read burst",\
80 },{ \
432d889e 81 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_WRITE_MAX,\
a2a7862c
PJ
82 .type = QEMU_OPT_NUMBER,\
83 .help = "total bytes write burst",\
84 },{ \
432d889e 85 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_TOTAL_MAX_LENGTH,\
a2a7862c
PJ
86 .type = QEMU_OPT_NUMBER,\
87 .help = "length of the iops-total-max burst period, in seconds",\
88 },{ \
432d889e 89 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_READ_MAX_LENGTH,\
a2a7862c
PJ
90 .type = QEMU_OPT_NUMBER,\
91 .help = "length of the iops-read-max burst period, in seconds",\
92 },{ \
432d889e 93 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_WRITE_MAX_LENGTH,\
a2a7862c
PJ
94 .type = QEMU_OPT_NUMBER,\
95 .help = "length of the iops-write-max burst period, in seconds",\
96 },{ \
432d889e 97 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_TOTAL_MAX_LENGTH,\
a2a7862c
PJ
98 .type = QEMU_OPT_NUMBER,\
99 .help = "length of the bps-total-max burst period, in seconds",\
100 },{ \
432d889e 101 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_READ_MAX_LENGTH,\
a2a7862c
PJ
102 .type = QEMU_OPT_NUMBER,\
103 .help = "length of the bps-read-max burst period, in seconds",\
104 },{ \
432d889e 105 .name = THROTTLE_OPT_PREFIX QEMU_OPT_BPS_WRITE_MAX_LENGTH,\
a2a7862c
PJ
106 .type = QEMU_OPT_NUMBER,\
107 .help = "length of the bps-write-max burst period, in seconds",\
108 },{ \
432d889e 109 .name = THROTTLE_OPT_PREFIX QEMU_OPT_IOPS_SIZE,\
a2a7862c
PJ
110 .type = QEMU_OPT_NUMBER,\
111 .help = "when limiting by iops max size of an I/O in bytes",\
112 }
113
114#endif