From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URohB-0006zH-8T for qemu-devel@nongnu.org; Mon, 15 Apr 2013 15:04:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URoh7-0001rE-8U for qemu-devel@nongnu.org; Mon, 15 Apr 2013 15:04:05 -0400 Received: from mail-qc0-x234.google.com ([2607:f8b0:400d:c01::234]:33326) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URoh7-0001qz-3s for qemu-devel@nongnu.org; Mon, 15 Apr 2013 15:04:01 -0400 Received: by mail-qc0-f180.google.com with SMTP id b40so442923qcq.25 for ; Mon, 15 Apr 2013 12:04:00 -0700 (PDT) From: Anthony Liguori In-Reply-To: <20130415182358.GF26210@smtp.vpn> References: <20130415182358.GF26210@smtp.vpn> Date: Mon, 15 Apr 2013 14:03:57 -0500 Message-ID: <87li8jsjj6.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] QTest with TCG? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Edgar E. Iglesias" , qemu-devel@nongnu.org Cc: Paolo Bonzini "Edgar E. Iglesias" writes: > 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? Interesting. No, I can't think of any problems in principle with doing this. It was not a use case I had considered. Regards, Anthony Liguori > > 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");