[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 0/6] cpus: make "-cpu cpux, features" global
From: |
Igor Mammedov |
Subject: |
Re: [Qemu-devel] [PATCH v2 0/6] cpus: make "-cpu cpux, features" global properties |
Date: |
Mon, 4 Jul 2016 10:04:31 +0200 |
On Thu, 9 Jun 2016 19:10:57 +0200
Igor Mammedov <address@hidden> wrote:
Eduardo,
is anything more left to review/fix so remaining patches of this series
could be merged?
There is PPC series[1] that would introduce a conflict (using old style
feature parsing code), it would be better if this series are merged
and so that [1] could be rebased on top of it if there aren't any issues
left.
https://www.mail-archive.com/address@hidden/msg383073.html
> Changelog:
> since v1:
> - rebase on top of x86-next tree, which shaves off already
> applied several patches and fixed deps on wrong tree (v1 was against
> my device_add_cpu tree)
> - add TODO comments
> - set cpu_globals_initialized = true early
> - move error_propagate() to the end of x86_cpu_parse_featurestr()
> since RFC:
> - include "target-i386: Remove xlevel & hv-spinlocks option
> fixups"
> - use Eduardo's version of:
> target-i386: cpu: consolidate calls of
> object_property_parse...
> - fix error handling of +-feat
> - add comment why +-feat is special
> - add comment to remove +-feat static vars
> - reuse x86_cpu_class_get_model_name()
>
> Current CLI option -cpu cpux,features serves as template
> for all created cpus of type: cpux. However QEMU parses
> "features" every time it creates a cpu instance and applies
> them to it while doing parsing.
>
> That doesn't work well with -device/device_add infrastructure
> as it has no idea about cpu specific hooks that's used for
> parsing "features".
> In order to make -device/device_add utilize "-cpu features"
> template convert it into a set of global properties, so that
> every new CPU created will have them applied automatically.
>
> That also allows to parse features only once, instread of
> doing it for every CPU instance being created.
>
> Git tree for testing:
> https://github.com/imammedo/qemu.git cpu_parse_into_global_props_V2
> web view:
> https://github.com/imammedo/qemu/commits/cpu_parse_into_global_props_V2
>
>
> Eduardo Habkost (1):
> target-i386: cpu: consolidate calls of object_property_parse() in
> x86_cpu_parse_featurestr
>
> Igor Mammedov (5):
> target-i386: print obsolete warnings if +-features are used
> target-sparc: cpu: use sparc_cpu_parse_features() directly
> cpu: use CPUClass->parse_features() as convertor to global
> properties arm: virt: parse cpu_model only once
> pc: parse cpu features only once
>
> hw/arm/virt.c | 41 ++++++++--------
> hw/i386/pc.c | 37 +++++++++++----
> include/qom/cpu.h | 2 +-
> qom/cpu.c | 38 ++++++++++-----
> target-i386/cpu.c | 135
> +++++++++++++++++++++++++----------------------------
> target-i386/cpu.h | 1 - target-sparc/cpu.c | 7 +--
> 7 files changed, 143 insertions(+), 118 deletions(-)
>
- Re: [Qemu-devel] [PATCH v2 0/6] cpus: make "-cpu cpux, features" global properties,
Igor Mammedov <=