Received: from eggs.gnu.org ([2001:4830:134:3::10]:34573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvsOR-00058C-Mh for qemu-devel@nongnu.org; Fri, 22 May 2015 15:14:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvsOM-0007DD-Jq for qemu-devel@nongnu.org; Fri, 22 May 2015 15:14:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvsOM-0007D9-Cu for qemu-devel@nongnu.org; Fri, 22 May 2015 15:13:58 -0400 Date: Fri, 22 May 2015 16:13:55 -0300 From: Eduardo Habkost Message-ID: <20150522191355.GG28075@thinpad.lan.raisama.net> References: <1429025304-17422-1-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1429025304-17422-1-git-send-email-ehabkost@redhat.com> Subject: Re: [Qemu-devel] [PATCH v5] target-i386: Register QOM properties for feature flags List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Andreas =?iso-8859-1?Q?F=E4rber?= , Igor Mammedov On Tue, Apr 14, 2015 at 12:28:24PM -0300, Eduardo Habkost wrote: > This uses the feature name arrays to register QOM properties for feature > flags. This simply adds properties that can be configured using -global, > but doesn't change x86_cpu_parse_featurestr() to use them yet. > > Signed-off-by: Eduardo Habkost This is being applied to x86 tree with the following change, because the object_property_add_alias() strdup() fix wasn't merged yet. diff --git a/target-i386/cpu.c b/target-i386/cpu.c index b2cf128..7042117 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -2947,7 +2947,8 @@ static void x86_cpu_register_feature_bit_props(X86CPU *cpu, for (i = 1; names[i]; i++) { feat2prop(names[i]); - object_property_add_alias(obj, names[i], obj, names[0], &error_abort); + object_property_add_alias(obj, names[i], obj, g_strdup(names[0]), + &error_abort); } g_strfreev(names); The g_strdup() call will be removed after the object_property_add_alias() fix is applied. -- Eduardo