Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHeFy-0003cr-U4 for qemu-devel@nongnu.org; Mon, 07 Dec 2009 09:08:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHeFu-0003Wy-5n for qemu-devel@nongnu.org; Mon, 07 Dec 2009 09:08:06 -0500 Received: from [199.232.76.173] (port=60160 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHeFu-0003WY-0t for qemu-devel@nongnu.org; Mon, 07 Dec 2009 09:08:02 -0500 Received: from cantor.suse.de ([195.135.220.2]:37137 helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NHeFt-0000Ga-PO for qemu-devel@nongnu.org; Mon, 07 Dec 2009 09:08:01 -0500 Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <4B1D02BC.4050202@redhat.com> Date: Mon, 7 Dec 2009 15:07:56 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1260189773-20728-1-git-send-email-kraxel@redhat.com> <1260189773-20728-6-git-send-email-kraxel@redhat.com> <4B1D02BC.4050202@redhat.com> Subject: [Qemu-devel] Re: [FOR 0.12 PATCH v3 05/21] default devices: core code & serial lines. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org, lcapitulino@redhat.com On 07.12.2009, at 14:27, Gerd Hoffmann wrote: > On 12/07/09 13:52, Alexander Graf wrote: >>> diff --git a/vl.c b/vl.c index 24d5d92..eca4eee 100644 --- a/vl.c >>> +++ b/vl.c @@ -271,6 +271,30 @@ uint8_t qemu_uuid[16]; static >>> QEMUBootSetHandler *boot_set_handler; static void >>> *boot_set_opaque; >>>=20 >>> +static int default_serial =3D 1; >>=20 >> Default variables belong in the machine description IMHO. On S390, we >> can't create serial, parallel or vga (or any MMIO/PIO requiring) >> devices. >=20 > See last patch of this series. Moving that into the machine = description is certainly worth looking at. For now I'm happy that the = #ifdef S390 code for the default virtio console is down to just two = lines. Would it be that hard to move the list of default devices to the machine = description? You could probably still keep the default_xxx variables in = vl.c, but access them from e.g. pc.c. Alex=