summary refs log tree commit diff stats
path: root/tests/qtest/migration-helpers.h
diff options
context:
space:
mode:
authorHyman Huang(黄勇) <huangy81@chinatelecom.cn>2022-06-26 01:38:37 +0800
committerDr. David Alan Gilbert <dgilbert@redhat.com>2022-07-20 12:15:08 +0100
commit8aff6f501d3561127e3425bbf0ebd936b3b92d0c (patch)
tree922c89c3f531d2c1b274ee5fad4ca8741201ebf5 /tests/qtest/migration-helpers.h
parentf3b2e38cfb2ecabe53b96752ebdf80b541a520ab (diff)
downloadfocaccia-qemu-8aff6f501d3561127e3425bbf0ebd936b3b92d0c.tar.gz
focaccia-qemu-8aff6f501d3561127e3425bbf0ebd936b3b92d0c.zip
tests: Add dirty page rate limit test
Add dirty page rate limit test if kernel support dirty ring,

The following qmp commands are covered by this test case:
"calc-dirty-rate", "query-dirty-rate", "set-vcpu-dirty-limit",
"cancel-vcpu-dirty-limit" and "query-vcpu-dirty-limit".

Signed-off-by: Hyman Huang(黄勇) <huangy81@chinatelecom.cn>
Acked-by: Peter Xu <peterx@redhat.com>
Message-Id: <eed5b847a6ef0a9c02a36383dbdd7db367dd1e7e.1656177590.git.huangy81@chinatelecom.cn>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'tests/qtest/migration-helpers.h')
-rw-r--r--tests/qtest/migration-helpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/qtest/migration-helpers.h b/tests/qtest/migration-helpers.h
index 78587c2b82..59561898d0 100644
--- a/tests/qtest/migration-helpers.h
+++ b/tests/qtest/migration-helpers.h
@@ -23,6 +23,8 @@ QDict *wait_command_fd(QTestState *who, int fd, const char *command, ...);
 G_GNUC_PRINTF(2, 3)
 QDict *wait_command(QTestState *who, const char *command, ...);
 
+QDict *qmp_command(QTestState *who, const char *command, ...);
+
 G_GNUC_PRINTF(3, 4)
 void migrate_qmp(QTestState *who, const char *uri, const char *fmt, ...);