From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCOfF-0006ko-E6 for qemu-devel@nongnu.org; Wed, 08 Nov 2017 06:37:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCOfA-0004oh-Ef for qemu-devel@nongnu.org; Wed, 08 Nov 2017 06:37:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53806) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eCOfA-0004nv-9C for qemu-devel@nongnu.org; Wed, 08 Nov 2017 06:36:56 -0500 References: <20171108022828.7242-1-f4bug@amsat.org> <20171108022828.7242-6-f4bug@amsat.org> From: Thomas Huth Message-ID: <4a07565a-235c-48cc-b0aa-3bd9938a4154@redhat.com> Date: Wed, 8 Nov 2017 12:36:46 +0100 MIME-Version: 1.0 In-Reply-To: <20171108022828.7242-6-f4bug@amsat.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC PATCH 5/6] hw/i386: deprecate the pc-0.10 and pc-0.11 machines List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Peter Maydell , Alistair Francis , Paolo Bonzini , Eduardo Habkost , Marcel Apfelbaum , "Michael S. Tsirkin" , Richard Henderson Cc: qemu-devel@nongnu.org On 08.11.2017 03:28, Philippe Mathieu-Daud=C3=A9 wrote: > Both are deprecated since 2.9.0 >=20 > Signed-off-by: Philippe Mathieu-Daud=C3=A9 > --- > hw/i386/pc_piix.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c > index f79d5cb694..c462b702ff 100644 > --- a/hw/i386/pc_piix.c > +++ b/hw/i386/pc_piix.c > @@ -941,6 +941,7 @@ static void pc_i440fx_0_11_machine_options(MachineC= lass *m) > pc_i440fx_0_12_machine_options(m); > m->hw_version =3D "0.11"; > SET_MACHINE_COMPAT(m, PC_COMPAT_0_11); > + m->deprecated_reason =3D "Too old"; As Daniel already mentioned it, I'd also suggest to use a more helpful message instead (e.g. "Use a newer version of pc-i440fx instead" ?). > } > =20 > DEFINE_I440FX_MACHINE(v0_11, "pc-0.11", pc_compat_0_13, > @@ -976,6 +977,7 @@ static void pc_i440fx_0_10_machine_options(MachineC= lass *m) > pc_i440fx_0_11_machine_options(m); > m->hw_version =3D "0.10"; > SET_MACHINE_COMPAT(m, PC_COMPAT_0_10); > + m->deprecated_reason =3D "Too old"; I think you don't need the second hunk here since the function is calling pc_i440fx_0_11_machine_options(), too. Thomas