From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avhlc-0005if-1a for qemu-devel@nongnu.org; Thu, 28 Apr 2016 04:57:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avhlW-0000ed-PY for qemu-devel@nongnu.org; Thu, 28 Apr 2016 04:57:48 -0400 Received: from krieglstein.org ([176.28.13.145]:34662 helo=lvps176-28-13-145.dedicated.hosteurope.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avhlW-0000cw-Jo for qemu-devel@nongnu.org; Thu, 28 Apr 2016 04:57:42 -0400 From: Tim Sander Date: Thu, 28 Apr 2016 10:57:07 +0200 Message-ID: <1778727.U9pNaL8rhb@dabox> In-Reply-To: <5027197.oRSkzRYNCA@dabox> References: <5027197.oRSkzRYNCA@dabox> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [Qemu-devel] qemu_chr_open_pipe List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini Hi > I would like to try to connect some serial hardware simulation to a standard > serial port within qemu. Everything should run within qemu. I found the answer and just to make the people happy using search engines here is the answer: There are backends which already implement serial hardware. They can be found under backends/. Especially msmouse.c and baum.c realize serial hardware which give a nice example how to connect to a qemu system. qapi-schema.json needs to be adaped similar to msmouse. And i guess the function qemu_chr_parse_compat in qemu-char.c needs also a new strcmp matching the new device name. qemu-options.hx also seems to need some changes. Currently unclear is to me is how the argument parsing callback works and how serial_hds should be replaced by properties? Any pointers are welcome. Best regards Tim