]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qtest.c
migration/multifd: initialize packet->magic/version once at setup stage
[mirror_qemu.git] / qtest.c
diff --git a/qtest.c b/qtest.c
index d8b4857c743bfa698b0d795dce0de1215a1089cd..8b50e2783ee0dde871ecd944340b6a5115902d60 100644 (file)
--- a/qtest.c
+++ b/qtest.c
@@ -661,6 +661,15 @@ static void qtest_process_command(CharBackend *chr, gchar **words)
         qtest_send_prefix(chr);
         qtest_sendf(chr, "OK %"PRIi64"\n",
                     (int64_t)qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL));
+    } else if (strcmp(words[0], "module_load") == 0) {
+        g_assert(words[1] && words[2]);
+
+        qtest_send_prefix(chr);
+        if (module_load_one(words[1], words[2])) {
+            qtest_sendf(chr, "OK\n");
+        } else {
+            qtest_sendf(chr, "FAIL\n");
+        }
     } else if (qtest_enabled() && strcmp(words[0], "clock_set") == 0) {
         int64_t ns;
         int ret;