Received: from eggs.gnu.org ([2001:4830:134:3::10]:59127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5dxZ-00078J-Pl for qemu-devel@nongnu.org; Thu, 18 Jun 2015 13:50:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5dxW-0004Wj-Jg for qemu-devel@nongnu.org; Thu, 18 Jun 2015 13:50:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5dxW-0004WN-EC for qemu-devel@nongnu.org; Thu, 18 Jun 2015 13:50:38 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 0E418379E3E for ; Thu, 18 Jun 2015 17:50:38 +0000 (UTC) Message-ID: <558304EB.8000106@redhat.com> Date: Thu, 18 Jun 2015 19:50:35 +0200 From: Laszlo Ersek MIME-Version: 1.0 References: <1434646168-3100-1-git-send-email-ehabkost@redhat.com> In-Reply-To: <1434646168-3100-1-git-send-email-ehabkost@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] q35: Re-enable FDC on pc-q35-2.3 and older List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost , qemu-devel@nongnu.org Cc: =?UTF-8?B?SsOhbiBUb21rbw==?= , Markus Armbruster , "Michael S. Tsirkin" On 06/18/15 18:49, Eduardo Habkost wrote: > commit ea96bc629cbd52be98b2967a4b4f72e91dfc3ee4 doesn't match the patch > submitted by Laszlo to qemu-devel. We reuse pc_q35_2_4_machine_options(= ) > inside pc_q35_2_3_machine_options(), so we need to undo the no_floppy > change in pc_q35_2_3_machine_options(). >=20 > This restores the previous behavior where all the 2.3 and older machine= s > had no_floppy=3D0. >=20 > Reported-by: J=C3=A1n Tomko > Cc: Laszlo Ersek > Signed-off-by: Eduardo Habkost > --- > hw/i386/pc_q35.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c > index b68263d..082cd93 100644 > --- a/hw/i386/pc_q35.c > +++ b/hw/i386/pc_q35.c > @@ -403,6 +403,7 @@ DEFINE_Q35_MACHINE(v2_4, "pc-q35-2.4", NULL, > static void pc_q35_2_3_machine_options(MachineClass *m) > { > pc_q35_2_4_machine_options(m); > + m->no_floppy =3D 0; > m->alias =3D NULL; > SET_MACHINE_COMPAT(m, PC_COMPAT_2_3); > } >=20 Looks good to me, thanks! In fact I'm just learning that under the new "machine type knobs" infrastructure, it's idiomatic to override settings (ie. to assign the same field several times). Resetting m->alias to NULL is an example. Reviewed-by: Laszlo Ersek Cheers Laszlo