qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/2] qtest: don't configure icount if qtest not allowed
@ 2013-10-17 21:52 Michael S. Tsirkin
  2013-10-17 21:52 ` [Qemu-devel] [PATCH 2/2] acpi-test: basic acpi unit-test Michael S. Tsirkin
  2013-10-18 11:51 ` [Qemu-devel] [PATCH 1/2] qtest: don't configure icount if qtest not allowed Paolo Bonzini
  0 siblings, 2 replies; 11+ messages in thread
From: Michael S. Tsirkin @ 2013-10-17 21:52 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini, Anthony Liguori

This makes it possible to run bios under qtest

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 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

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-10-19 17:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-17 21:52 [Qemu-devel] [PATCH 1/2] qtest: don't configure icount if qtest not allowed Michael S. Tsirkin
2013-10-17 21:52 ` [Qemu-devel] [PATCH 2/2] acpi-test: basic acpi unit-test Michael S. Tsirkin
2013-10-18  5:30   ` Markus Armbruster
2013-10-18  6:36     ` Paolo Bonzini
2013-10-18 11:43       ` Markus Armbruster
2013-10-18 11:20     ` Michael S. Tsirkin
2013-10-19  0:13   ` Andreas Färber
2013-10-19  1:25     ` Anthony Liguori
2013-10-19 17:27     ` Michael S. Tsirkin
2013-10-18 11:51 ` [Qemu-devel] [PATCH 1/2] qtest: don't configure icount if qtest not allowed Paolo Bonzini
2013-10-18 12:13   ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).