]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tests/test-throttle.c
migration/postcopy: enable random order target page arrival
[mirror_qemu.git] / tests / test-throttle.c
index 5644cf95ca25056f9ebb07e929247b326bb294b3..7adb5e6652c94bda8238e520f72fb82c0a8afc24 100644 (file)
@@ -18,6 +18,8 @@
 #include "qapi/error.h"
 #include "qemu/throttle.h"
 #include "qemu/error-report.h"
+#include "qemu/main-loop.h"
+#include "qemu/module.h"
 #include "block/throttle-groups.h"
 #include "sysemu/block-backend.h"
 
@@ -556,6 +558,8 @@ static bool do_test_accounting(bool is_ops, /* are we testing bps or ops */
     BucketType index;
     int i;
 
+    throttle_config_init(&cfg);
+
     for (i = 0; i < 3; i++) {
         BucketType index = to_test[is_ops][i];
         cfg.buckets[index].avg = avg;