Received: from eggs.gnu.org ([2001:4830:134:3::10]:51237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6nW9-0003Yj-1u for qemu-devel@nongnu.org; Mon, 14 Jul 2014 17:10:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6nW1-00046O-9f for qemu-devel@nongnu.org; Mon, 14 Jul 2014 17:10:36 -0400 Received: from mail.tu-berlin.de ([130.149.7.33]:32473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6nW0-00045f-Tk for qemu-devel@nongnu.org; Mon, 14 Jul 2014 17:10:29 -0400 Message-ID: <53C44742.2010104@campus.tu-berlin.de> Date: Mon, 14 Jul 2014 23:10:26 +0200 From: Alexander Graf MIME-Version: 1.0 References: <53C295C8.5040309@antistatix.de> <53C3C32A.4060705@redhat.com> <53C41CEC.5030705@campus.tu-berlin.de> <53C43F9B.6090907@redhat.com> In-Reply-To: <53C43F9B.6090907@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; 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: Paolo Bonzini , qemu-devel@nongnu.org Cc: peter.maydell@linaro.org On 07/14/2014 10:37 PM, Paolo Bonzini wrote:> The obvious thing to consider is whether this could be used to > circumvent the GPL. > > I think a generic memory-mapped I/O device interface is not a good idea > in this respect, also because it's hard to get it right. Okay, if this is a concern I will have to keep my changes off the mainline as it is a required feature. > But i2c is > simple enough, and there are so many devices with a 4-page datasheet, > that I think it would be acceptable. You could also write an i2c > passthrough chardev backend that connects to /dev/i2c* and lets the > guest access slaves in the host. My interest is to fake sensor values for the guest and not to connect anything to real hardware. I think I misinterpreted your "chardev". To clarify: My guest is a bare metal ARM image, no linux and I don't want to interact with the host's hardware. So no chardev in the linux sense is involved. Anyway thank you for your feedback. Regards Alexander