Received: from eggs.gnu.org ([2001:4830:134:3::10]:46024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgTMI-0002px-UG for qemu-devel@nongnu.org; Fri, 10 Apr 2015 03:28:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgTME-0006wj-Ug for qemu-devel@nongnu.org; Fri, 10 Apr 2015 03:28:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34563) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgTME-0006wX-N3 for qemu-devel@nongnu.org; Fri, 10 Apr 2015 03:28:06 -0400 Date: Fri, 10 Apr 2015 09:27:51 +0200 From: Igor Mammedov Message-ID: <20150410092751.3573d267@igors-macbook-pro.local> In-Reply-To: <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> <20150409184830.GB18590@thinpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Eduardo Habkost Cc: Paolo Bonzini , Jiri Denemark , qemu-devel@nongnu.org, Andreas =?UTF-8?Q?F=C3=A4rber?= On Thu, 9 Apr 2015 15:48:30 -0300 Eduardo Habkost wrote: > 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); BTW: I've remembered why we've chosen feat- vs. cpuid- prefix it was to make CPU features platform neutral so that libvirt would use the same prefix for x86, arm other targets. > > + x86_cpu_register_feature_prop(cpu, prop_name, w, (1UL << > > bit)); > > + g_free(prop_name); > > + } > > + g_strfreev(names); > > +} > > +