[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/2] qtest: don't configure icount if qtest not allo
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PATCH 1/2] qtest: don't configure icount if qtest not allowed |
Date: |
Fri, 18 Oct 2013 00:52:13 +0300 |
This makes it possible to run bios under qtest
Signed-off-by: Michael S. Tsirkin <address@hidden>
---
qtest.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/qtest.c b/qtest.c
index 584c707..48e3288 100644
--- a/qtest.c
+++ b/qtest.c
@@ -508,7 +508,9 @@ int qtest_init(void)
g_assert(qtest_chrdev != NULL);
- configure_icount("0");
+ if (qtest_enabled()) {
+ configure_icount("0");
+ }
chr = qemu_chr_new("qtest", qtest_chrdev, NULL);
qemu_chr_add_handlers(chr, qtest_can_read, qtest_read, qtest_event, chr);
--
MST