[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] target-i386: add a list of enforceable CPU mode
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH] target-i386: add a list of enforceable CPU models to the help output |
Date: |
Mon, 24 Aug 2015 14:22:15 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 |
Hi,
Am 24.08.2015 um 03:17 schrieb Peter Lieven:
> this patch adds a probe that lists all enforceable and migrateable
> CPU models to the -cpu help output. The idea is to know a priory
> which CPU modules can be exposed to the user without loosing any
models
> feature flags.
>
> Signed-off-by: Peter Lieven <address@hidden>
> ---
> target-i386/cpu.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 49 insertions(+)
>
> diff --git a/target-i386/cpu.c b/target-i386/cpu.c
> index cfb8aa7..3a56d3f 100644
> --- a/target-i386/cpu.c
> +++ b/target-i386/cpu.c
[...]
> @@ -1987,6 +2026,16 @@ void x86_cpu_list(FILE *f, fprintf_function
> cpu_fprintf)
> listflags(f, cpu_fprintf, fw->feat_names);
> (*cpu_fprintf)(f, "\n");
> }
> +
> + (*cpu_fprintf)(f, "\nEnforceable and migratable x86 CPU models in KVM
> mode:\n");
> + (*cpu_fprintf)(f, " ");
> + for (i = 0; i < ARRAY_SIZE(builtin_x86_defs); i++) {
> + def = &builtin_x86_defs[i];
> + if (x86_cpu_enforce_and_migratable(def)) {
> + (*cpu_fprintf)(f, " %s", def->name);
> + }
> + }
> + (*cpu_fprintf)(f, "\n");
> }
>
> CpuDefinitionInfoList *arch_query_cpu_definitions(Error **errp)
I don't think adding a new section is such a good idea here, it may add
more confusion than it helps. I would rather suggest to add some
annotation to the existing list.
Regards,
Andreas
--
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton; HRB 21284 (AG Nürnberg)
- [Qemu-devel] CPU Model kvm64 and Windows2012R2, (continued)
Re: [Qemu-devel] [PATCH] target-i386: add a list of enforceable CPU models to the help output,
Andreas Färber <=
Re: [Qemu-devel] [PATCH] target-i386: add a list of enforceable CPU models to the help output, Eduardo Habkost, 2015/08/26