Received: from eggs.gnu.org ([208.118.235.92]:58258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ti7lm-0000mz-Hd for qemu-devel@nongnu.org; Mon, 10 Dec 2012 13:08:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ti7ll-00059b-3w for qemu-devel@nongnu.org; Mon, 10 Dec 2012 13:07:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ti7lk-00059T-SB for qemu-devel@nongnu.org; Mon, 10 Dec 2012 13:07:57 -0500 Date: Mon, 10 Dec 2012 16:09:21 -0200 From: Eduardo Habkost Message-ID: <20121210180920.GQ4255@otherpad.lan.raisama.net> References: <1354645978-17362-1-git-send-email-ehabkost@redhat.com> <1355082353-322-1-git-send-email-afaerber@suse.de> <1355082353-322-4-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1355082353-322-4-git-send-email-afaerber@suse.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH qom-cpu 3/4] Really 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: blauwirbel@gmail.com, imammedo@redhat.com, Anthony Liguori , Riku Voipio , qemu-devel@nongnu.org On Sun, Dec 09, 2012 at 08:45:52PM +0100, Andreas F=E4rber wrote: > Commit 511c68d3af626cb0a39034cb77e7ac64d3a26c0c (finally kill cpudef > config section support) removed the cpudef parsing support but left > cpudef_* hooks behind. Remove those. The cpudef_* functions have nothing to do with the cpudef config section since QEMU 1.2, it is just about initializing CPU-definition-related data structures, so the patch subject is a bit misleading. But I agree with the changes done here, and patch looks good to me, so: Reviewed-by: Eduardo Habkost >=20 > Since TYPE_X86_CPU currently is the only CPU class and CPUs are > instantiated exclusively through QOM (i.e., cpu_x86_init()), we can use > its class_init to bootstrap the list of model definitions until we have > these as subclasses. Avoid code movements for x86_cpudef_setup() to not > interfere with the various approaches to drop it in favor of subclasses. >=20 > Signed-off-by: Andreas F=E4rber > Cc: Eduardo Habkost > Cc: Blue Swirl > --- > arch_init.c | 7 ------- > arch_init.h | 1 - > bsd-user/main.c | 3 --- > linux-user/main.c | 3 --- > target-i386/cpu.c | 7 ++++++- > target-i386/cpu.h | 2 -- > vl.c | 7 ------- > 7 Dateien ge=E4ndert, 6 Zeilen hinzugef=FCgt(+), 24 Zeilen entfernt(-) >=20 [...] --=20 Eduardo