From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7Kv4-0000YU-Q0 for qemu-devel@nongnu.org; Wed, 16 Jul 2014 04:50:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7Kuy-0004Et-KU for qemu-devel@nongnu.org; Wed, 16 Jul 2014 04:50:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7Kuy-0004Eo-Bq for qemu-devel@nongnu.org; Wed, 16 Jul 2014 04:50:28 -0400 Message-ID: <53C63CC9.3020304@redhat.com> Date: Wed, 16 Jul 2014 10:50:17 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <53C295C8.5040309@antistatix.de> <53C3C32A.4060705@redhat.com> <53C41CEC.5030705@campus.tu-berlin.de> <53C43F9B.6090907@redhat.com> <53C44742.2010104@campus.tu-berlin.de> <53C4D2FC.50402@redhat.com> <53C501DD.3090805@ilr.tu-berlin.de> <53C5081D.20408@redhat.com> <53C57914.2030508@campus.tu-berlin.de> <53C58A75.4000702@redhat.com> <53C63A93.5000704@campus.tu-berlin.de> In-Reply-To: <53C63A93.5000704@campus.tu-berlin.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] hw/arm: add Lego NXT board List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf , Alexander Graf , Peter Maydell Cc: QEMU Developers Il 16/07/2014 10:40, Alexander Graf ha scritto: >>> > >> I think that there are two other ways to do it. > > And what about the chardev way? Your silence in this regard is > misterious ;-) The main problem with chardevs is that they are completely asynchronous. So they may not be a good match for your use case. (In fact, this is a problem for the i2c-over-chardev and especially spi-over-chardev ideas I shot out yesterday. For i2c-over-chardev one could add support to clock stretching in QEMU, but SPI is entirely synchronous). Note that -qmp and -qtest both use chardevs internally to connect the external program with QEMU. Paolo >> >> 1) [...] >> 2) [...] > > Thanks a lot for your suggestions. I will play a bit and come back when > I have some code to show.