From patchwork Mon Apr 15 18:23:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 236664 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id BF3232C00EB for ; Tue, 16 Apr 2013 04:24:31 +1000 (EST) Received: from localhost ([::1]:41111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URo4r-00024y-Oo for incoming@patchwork.ozlabs.org; Mon, 15 Apr 2013 14:24:29 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=6qe3LTn1AlChVX9zyBJUWgOZvlUhgY1IQzK81oH1f+g=; b=Qbc3Yfz5Q4zyyxPk9qvG+CXXiURCnHMZT9f+2GvFQ0ox0ZOMMHnvaUqePnawdkaRG8 G/FyF4zNEh0lMFaFcQUluKw5gzolSj/0iFQd+bYSVQreSRx+edvvdQ94iydULrw8lny7 Kiez/d0d2YauknxhgHgiO/ZM4QKYACf40yCpcPkz1f2fMw/8ne2O1nvbtjc9HROuoMco zfgN/LbkTfapbQZhtoUtjSAvmLLp553+Ij8TUrqBZexPYA6vey+pWGao4jWjuAUfn6un Vk3NFq0h2dpnPkO4dDZ6Uc4WZDieFir8TnCu4VZVta0u62fb02tnZSkL4FyMMa76Z/tB FVbQ== X-Received: by 10.14.201.67 with SMTP id a43mr47046894eeo.33.1366050243819; Mon, 15 Apr 2013 11:24:03 -0700 (PDT) Received: from localhost (h59ec325f.selukar.dyn.perspektivbredband.net. [89.236.50.95]) by mx.google.com with ESMTPS id a41sm28201837eei.4.2013.04.15.11.24.02 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 15 Apr 2013 11:24:03 -0700 (PDT) Date: Mon, 15 Apr 2013 20:23:58 +0200 From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Message-ID: <20130415182358.GF26210@smtp.vpn> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 74.125.83.44 Cc: Paolo Bonzini , anthony@codemonkey.ws Subject: [Qemu-devel] QTest with TCG? X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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");