Received: from eggs.gnu.org ([2001:4830:134:3::10]:42669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgHVG-0005t2-EX for qemu-devel@nongnu.org; Thu, 09 Apr 2015 14:48:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgHVD-0000ep-9a for qemu-devel@nongnu.org; Thu, 09 Apr 2015 14:48:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgHVD-0000eX-2q for qemu-devel@nongnu.org; Thu, 09 Apr 2015 14:48:35 -0400 Date: Thu, 9 Apr 2015 15:48:30 -0300 From: Eduardo Habkost Message-ID: <20150409184830.GB18590@thinpad.lan.raisama.net> References: <1428519763-21644-1-git-send-email-ehabkost@redhat.com> <1428519763-21644-4-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1428519763-21644-4-git-send-email-ehabkost@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 3/4] 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 , Jiri Denemark , Andreas =?iso-8859-1?Q?F=E4rber?= , Igor Mammedov On Wed, Apr 08, 2015 at 04:02:42PM -0300, Eduardo Habkost wrote: [...] > + names = g_strsplit(fi->feat_names[bit], "|", 0); I forgot to implement the property aliases Igor asked for. I will submit v3 of this patch later. > + for (i = 0; names[i]; i++) { > + char *feat_name = names[i]; > + feat2prop(feat_name); > + char *prop_name = g_strdup_printf("cpuid-%s", feat_name); > + x86_cpu_register_feature_prop(cpu, prop_name, w, (1UL << bit)); > + g_free(prop_name); > + } > + g_strfreev(names); > +} > + -- Eduardo