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>
This commit is contained in:
Edgar E. Iglesias 2013-04-15 21:28:17 +02:00 committed by Anthony Liguori
parent fe6c211781
commit a907cf59d8
1 changed files with 4 additions and 0 deletions

4
vl.c
View File

@ -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");