From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nh00b-00068U-FW for qemu-devel@nongnu.org; Mon, 15 Feb 2010 07:25:01 -0500 Received: from [199.232.76.173] (port=60169 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nh00b-00068M-3W for qemu-devel@nongnu.org; Mon, 15 Feb 2010 07:25:01 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nh00Y-0004q0-74 for qemu-devel@nongnu.org; Mon, 15 Feb 2010 07:25:00 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53771) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nh00X-0004pw-Oe for qemu-devel@nongnu.org; Mon, 15 Feb 2010 07:24:58 -0500 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1FCOumq017106 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 15 Feb 2010 07:24:56 -0500 Message-ID: <4B793D12.7010901@redhat.com> Date: Mon, 15 Feb 2010 13:24:50 +0100 From: Gerd Hoffmann MIME-Version: 1.0 References: <20100212134214.GA4214@redhat.com> <20100212142349.GB25859@amit-x200.redhat.com> <4B790DE6.7080109@redhat.com> <20100215092401.GA12082@amit-x200.redhat.com> In-Reply-To: <20100215092401.GA12082@amit-x200.redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] virtio-serial: don't set MULTIPORT for 1 port dev List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amit Shah Cc: qemu-devel@nongnu.org, "Michael S. Tsirkin" On 02/15/10 10:24, Amit Shah wrote: >> Is there a qdev property for max_nr_ports? Then simply adding a compat >> property will do the trick. > > Something like this (I can split it into two patches before submission): Yep, should be splitted. > diff --git a/hw/pc.c b/hw/pc.c > index 5b29f3b..a975934 100644 > --- a/hw/pc.c > +++ b/hw/pc.c > @@ -1055,12 +1055,32 @@ void cmos_set_s3_resume(void) > } > > static QEMUMachine pc_machine = { > + .name = "pc-0.13", > + .alias = "pc", > + .desc = "Standard PC", > + .init = pc_init_pci, > + .is_default = 1, > + .max_cpus = 255, > +}; > + > +static QEMUMachine pc_machine_v0_12 = { > .name = "pc-0.12", > .alias = "pc", .alias should be dropped too. cheers, Gerd