From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXZZ8-00036o-9r for qemu-devel@nongnu.org; Wed, 01 May 2013 12:07:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXZZ5-00086R-IS for qemu-devel@nongnu.org; Wed, 01 May 2013 12:07:34 -0400 Received: from cantor2.suse.de ([195.135.220.15]:32847 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXZZ5-00086A-BS for qemu-devel@nongnu.org; Wed, 01 May 2013 12:07:31 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Wed, 1 May 2013 18:07:16 +0200 Message-Id: <1367424440-16687-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH qom-cpu for-1.5 0/4] target-i386: X86CPU compatibility properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: ehabkost@redhat.com, "Michael S. Tsirkin" , pbonzini@redhat.com, anthony@codemonkey.ws, "H. Peter Anvin" , imammedo@redhat.com, Borislav Petkov , =?UTF-8?q?Andreas=20F=C3=A4rber?= Hello, It's easier adapting the infrastructure to our needs than working around = it: X86CPU already has QOM properties today. What's lacking is model subclass= es, and with the one X86CPU type its global properties are overwritten by mod= els. But we already know the designated naming scheme for the models! So let's simply prepare compat_props for CPU models and make sure they ar= e already picked up today. This works just fine for changing the 486 CPUID model value and avoids to redo the PC part once we have X86CPU subclasses. Tested using: ./QMP/qom-get /machine/icc-bridge/icc/child[0].model For changing n270 CPUID flags we'll still need to resort to Eduardo's pro= posed helper functions for now. Regards, Andreas Cc: Eduardo Habkost Cc: Igor Mammedov Cc: H. Peter Anvin Cc: Borislav Petkov Cc: Anthony Liguori Cc: Paolo Bonzini Cc: Michael S. Tsirkin Andreas F=C3=A4rber (4): qdev: Let qdev_prop_parse() pass through Error qdev: Introduce qdev_prop_set_custom_globals() target-i386: Emulate X86CPU subclasses for global properties target-i386: Change CPUID model of 486 to 8 hw/core/qdev-properties.c | 50 ++++++++++++++++++++++++++------------= ------ hw/core/qdev.c | 7 ++++++- include/hw/i386/pc.h | 4 ++++ include/hw/qdev-properties.h | 7 +++++-- qdev-monitor.c | 6 +++++- target-i386/cpu.c | 11 +++++++++- 6 files changed, 60 insertions(+), 25 deletions(-) --=20 1.8.1.4