Received: from eggs.gnu.org ([208.118.235.92]:37261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URo4V-0001zb-V3 for qemu-devel@nongnu.org; Mon, 15 Apr 2013 14:24:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URo4T-0003PD-R0 for qemu-devel@nongnu.org; Mon, 15 Apr 2013 14:24:07 -0400 Received: from mail-ee0-f44.google.com ([74.125.83.44]:32994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URo4T-0003Ot-K0 for qemu-devel@nongnu.org; Mon, 15 Apr 2013 14:24:05 -0400 Received: by mail-ee0-f44.google.com with SMTP id c41so2455598eek.31 for ; Mon, 15 Apr 2013 11:24:03 -0700 (PDT) Date: Mon, 15 Apr 2013 20:23:58 +0200 From: "Edgar E. Iglesias" Message-ID: <20130415182358.GF26210@smtp.vpn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] QTest with TCG? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , anthony@codemonkey.ws Hi, I would like to use qtest for testing hw-models in combination with firmware. At the moment I'm using the following patch to allow qtest to run without accel=qtest. I'm mostly interested in the mem access functions and the interrupt interception. I guess time stepping wouldnt work without accel=qtest, but maybe that could be an acceptable limitation. Is there anything in principle with such a setup that would cause problems? Thanks, Edgar commit 947414a56e256139a510a034c02ac277ad577272 Author: Edgar E. Iglesias Date: Wed Apr 10 20:32:17 2013 +0200 Allow qtest to be used together with a virtual CPU Signed-off-by: Edgar E. Iglesias diff --git a/vl.c b/vl.c index c566caf..0dbac29 100644 --- a/vl.c +++ b/vl.c @@ -4143,6 +4143,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");