Received: from eggs.gnu.org ([2001:4830:134:3::10]:42341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWvS0-0001kR-Px for qemu-devel@nongnu.org; Thu, 17 Oct 2013 17:49:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWvRu-0005tj-Qn for qemu-devel@nongnu.org; Thu, 17 Oct 2013 17:49:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWvRu-0005te-Ig for qemu-devel@nongnu.org; Thu, 17 Oct 2013 17:49:42 -0400 Date: Fri, 18 Oct 2013 00:52:13 +0300 From: "Michael S. Tsirkin" Message-ID: <1382046646-20263-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH 1/2] qtest: don't configure icount if qtest not allowed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, Anthony Liguori This makes it possible to run bios under qtest Signed-off-by: Michael S. Tsirkin --- 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