Received: from eggs.gnu.org ([208.118.235.92]:50841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfxbK-0001kB-VB for qemu-devel@nongnu.org; Tue, 04 Dec 2012 13:52:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfxbE-0003y0-Ld for qemu-devel@nongnu.org; Tue, 04 Dec 2012 13:52:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:22369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfxbE-0003xw-E2 for qemu-devel@nongnu.org; Tue, 04 Dec 2012 13:52:08 -0500 Date: Tue, 4 Dec 2012 16:53:38 -0200 From: Eduardo Habkost Message-ID: <20121204185337.GB4986@otherpad.lan.raisama.net> References: <1354645978-17362-1-git-send-email-ehabkost@redhat.com> <50BE43EB.6000700@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <50BE43EB.6000700@suse.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] finally kill cpudef config section support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: Igor Mammedov , qemu-devel@nongnu.org, Paolo Bonzini On Tue, Dec 04, 2012 at 07:41:47PM +0100, Andreas F=E4rber wrote: > Am 04.12.2012 19:32, schrieb Eduardo Habkost: > > The external CPU models were removed on QEMU 1.2, and the support for > > the "cpudef" config sections was documented as deprecated, but the > > actual removal of the config section was pending. > >=20 > > Now that QEMU 1.3 was released, we can finally kill the support for > > cpudef config sections, and support only the built-in CPU models from > > target-i386/cpu.c. > >=20 > > Signed-off-by: Eduardo Habkost >=20 > This looks okay so far, but I'm guessing this was based on another > branch of yours? If we apply this right now, we would also want to > remove the #ifdef'ed cpudef_init() or so function invoking the parsing,= no? Right now cpudef_init() calls cpudef_setup(), that initializes some fields in the builtin CPU model list on x86, but doesn't use the cpudef config section anymore[1]. cpudef_setup() and cpudef_init() will be killed later, when we kill the builtin_x86_defs table and introduce CPU model subclasses. [1] The code dealing with the cpudef section was removed on c04321b3685a0b06d737d04146a0f1f2c5950b39. So, in the end it would be safe to apply this patch before 1.3, as the code that actually used the cpudef CPU models was already removed. >=20 > Andreas >=20 > > --- > > qemu-config.c | 49 ------------------------------------------------- > > 1 file changed, 49 deletions(-) > >=20 > > diff --git a/qemu-config.c b/qemu-config.c > > index 10d1ba4..aa78fb9 100644 > > --- a/qemu-config.c > > +++ b/qemu-config.c > > @@ -417,54 +417,6 @@ static QemuOptsList qemu_trace_opts =3D { > > }, > > }; > > =20 > > -static QemuOptsList qemu_cpudef_opts =3D { > > - .name =3D "cpudef", > > - .head =3D QTAILQ_HEAD_INITIALIZER(qemu_cpudef_opts.head), > > - .desc =3D { > > - { > > - .name =3D "name", > > - .type =3D QEMU_OPT_STRING, > > - },{ > > - .name =3D "level", > > - .type =3D QEMU_OPT_NUMBER, > > - },{ > > - .name =3D "vendor", > > - .type =3D QEMU_OPT_STRING, > > - },{ > > - .name =3D "family", > > - .type =3D QEMU_OPT_NUMBER, > > - },{ > > - .name =3D "model", > > - .type =3D QEMU_OPT_NUMBER, > > - },{ > > - .name =3D "stepping", > > - .type =3D QEMU_OPT_NUMBER, > > - },{ > > - .name =3D "feature_edx", /* cpuid 0000_0001.edx */ > > - .type =3D QEMU_OPT_STRING, > > - },{ > > - .name =3D "feature_ecx", /* cpuid 0000_0001.ecx */ > > - .type =3D QEMU_OPT_STRING, > > - },{ > > - .name =3D "extfeature_edx", /* cpuid 8000_0001.edx */ > > - .type =3D QEMU_OPT_STRING, > > - },{ > > - .name =3D "extfeature_ecx", /* cpuid 8000_0001.ecx */ > > - .type =3D QEMU_OPT_STRING, > > - },{ > > - .name =3D "xlevel", > > - .type =3D QEMU_OPT_NUMBER, > > - },{ > > - .name =3D "model_id", > > - .type =3D QEMU_OPT_STRING, > > - },{ > > - .name =3D "vendor_override", > > - .type =3D QEMU_OPT_NUMBER, > > - }, > > - { /* end of list */ } > > - }, > > -}; > > - > > QemuOptsList qemu_spice_opts =3D { > > .name =3D "spice", > > .head =3D QTAILQ_HEAD_INITIALIZER(qemu_spice_opts.head), > > @@ -700,7 +652,6 @@ static QemuOptsList *vm_config_groups[32] =3D { > > &qemu_rtc_opts, > > &qemu_global_opts, > > &qemu_mon_opts, > > - &qemu_cpudef_opts, > > &qemu_trace_opts, > > &qemu_option_rom_opts, > > &qemu_machine_opts, > >=20 >=20 >=20 > --=20 > SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany > GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrn= berg >=20 --=20 Eduardo