diff mbox

Allow qtest to be used together with a virtual CPU

Message ID 1366054097-14132-1-git-send-email-edgar.iglesias@gmail.com
State New
Headers show

Commit Message

Edgar E. Iglesias April 15, 2013, 7:28 p.m. UTC
From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
---
 vl.c |    4 ++++
 1 file changed, 4 insertions(+)

Comments

Anthony Liguori April 22, 2013, 6:37 p.m. UTC | #1
Applied.  Thanks.

Regards,

Anthony Liguori
diff mbox

Patch

diff --git a/vl.c b/vl.c
index c566caf..0dbac29 100644
--- a/vl.c
+++ b/vl.c
@@ -4143,6 +4143,10 @@  int main(int argc, char **argv, char **envp)
 
     configure_accelerator();
 
+    if (!qtest_enabled() && qtest_chrdev) {
+        qtest_init();
+    }
+
     machine_opts = qemu_opts_find(qemu_find_opts("machine"), 0);
     if (machine_opts) {
         kernel_filename = qemu_opt_get(machine_opts, "kernel");