From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9QoV-0002cC-Dv for qemu-devel@nongnu.org; Sun, 07 Dec 2008 16:05:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9QoT-0002ar-1f for qemu-devel@nongnu.org; Sun, 07 Dec 2008 16:05:14 -0500 Received: from [199.232.76.173] (port=41284 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9QoS-0002ah-GM for qemu-devel@nongnu.org; Sun, 07 Dec 2008 16:05:12 -0500 Received: from smtp2-g19.free.fr ([212.27.42.28]:35961) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L9QoS-0005iw-0n for qemu-devel@nongnu.org; Sun, 07 Dec 2008 16:05:12 -0500 Received: from smtp2-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp2-g19.free.fr (Postfix) with ESMTP id 272C012B6E9 for ; Sun, 7 Dec 2008 22:05:09 +0100 (CET) Received: from [192.168.0.32] (rob92-10-88-171-126-33.fbx.proxad.net [88.171.126.33]) by smtp2-g19.free.fr (Postfix) with ESMTP id EB32012B6A9 for ; Sun, 7 Dec 2008 22:05:08 +0100 (CET) Message-ID: <493C3A84.2060807@reactos.org> Date: Sun, 07 Dec 2008 22:05:08 +0100 From: =?ISO-8859-1?Q?Herv=E9_Poussineau?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050200000405090204090001" Subject: [Qemu-devel] [RFC] 2nd serial port by default Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------050200000405090204090001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Hi, Most computers have 0 or 2 serial ports, but Qemu only allocates one by=20 default. Attached patch defines 2 serial ports by default, instead of one. Previous behaviour can be done with "-serial vc:80Cx24C -serial none"=20 argument. Please comment Herv=E9 --------------050200000405090204090001 Content-Type: plain/text; name="2serial_ports.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="2serial_ports.diff" Index: vl.c =================================================================== --- vl.c (revision 5917) +++ vl.c (working copy) @@ -4545,7 +4545,8 @@ monitor_device = "vc"; serial_devices[0] = "vc:80Cx24C"; - for(i = 1; i < MAX_SERIAL_PORTS; i++) + serial_devices[1] = "vc:80Cx24C"; + for(i = 2; i < MAX_SERIAL_PORTS; i++) serial_devices[i] = NULL; serial_device_index = 0; --------------050200000405090204090001--