aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>2013-04-15 21:28:17 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2013-04-15 17:05:34 -0500
commita907cf59d8a41ecb909ad4367cd016c7d71f8546 (patch)
treecbce2aa122ae2316650317fc59531767f731d15c /vl.c
parentfe6c211781f80ef4fc246269cecbbc21981089f0 (diff)
Allow qtest to be used together with a virtual CPU
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> Message-id: 1366054097-14132-1-git-send-email-edgar.iglesias@gmail.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index dd945496df..a1093c52c4 100644
--- a/vl.c
+++ b/vl.c
@@ -4127,6 +4127,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");