[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 3/4] target-i386: Register QOM properties for
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-devel] [PATCH v2 3/4] target-i386: Register QOM properties for feature flags |
Date: |
Fri, 10 Apr 2015 12:49:55 -0300 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Fri, Apr 10, 2015 at 10:21:49AM +0200, Paolo Bonzini wrote:
>
>
> On 10/04/2015 09:27, Igor Mammedov wrote:
> > > + 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.
>
> Ok, that make sense, but if we want to make it platform-neutral, let's
> spell it "feature-" or remove the prefix altogether.
I am liking the idea of removing the prefix. I can't find a compelling
reason for making boolean properties that affect CPUID special and
different from other boolean properties in X86CPU.
>
> If we remove it, perhaps we could add a QOM property with the list of
> features?
I am not even sure this will be necessary. libvirt, for example, is
already aware of the list of CPU feature flags it can set/unset, so it
probably wouldn't need the list. If it becomes necessary, we can add it.
I will send v4 without the prefix.
--
Eduardo
- [Qemu-devel] [PATCH v2 1/4] target-i386: Make "level" and "xlevel" properties static, (continued)
- [Qemu-devel] [PATCH v2 1/4] target-i386: Make "level" and "xlevel" properties static, Eduardo Habkost, 2015/04/08
- [Qemu-devel] [PATCH v2 2/4] target-i386: X86CPU::xlevel2 QOM property, Eduardo Habkost, 2015/04/08
- [Qemu-devel] [PATCH v2 3/4] target-i386: Register QOM properties for feature flags, Eduardo Habkost, 2015/04/08
- Re: [Qemu-devel] [PATCH v2 3/4] target-i386: Register QOM properties for feature flags, Eduardo Habkost, 2015/04/09
- Re: [Qemu-devel] [PATCH v2 3/4] target-i386: Register QOM properties for feature flags, Igor Mammedov, 2015/04/10
- Re: [Qemu-devel] [PATCH v2 3/4] target-i386: Register QOM properties for feature flags, Paolo Bonzini, 2015/04/10
- Re: [Qemu-devel] [PATCH v2 3/4] target-i386: Register QOM properties for feature flags, Andreas Färber, 2015/04/10
- Re: [Qemu-devel] [PATCH v2 3/4] target-i386: Register QOM properties for feature flags, Paolo Bonzini, 2015/04/10
- Re: [Qemu-devel] [PATCH v2 3/4] target-i386: Register QOM properties for feature flags, Andreas Färber, 2015/04/10
- Re: [Qemu-devel] [PATCH v2 3/4] target-i386: Register QOM properties for feature flags,
Eduardo Habkost <=
[Qemu-devel] [PATCH v2 4/4] scripts: x86-cpu-model-dump script, Eduardo Habkost, 2015/04/08