[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 10/17] target-s390x: Add S390 CPU model alias
From: |
Christian Borntraeger |
Subject: |
Re: [Qemu-devel] [PATCH v5 10/17] target-s390x: Add S390 CPU model alias definition routines |
Date: |
Mon, 27 Apr 2015 10:11:33 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
Am 13.04.2015 um 15:56 schrieb Michael Mueller:
> --- a/target-s390x/cpu-models.c
> +++ b/target-s390x/cpu-models.c
> @@ -88,3 +88,85 @@ S390_PROC_DEF("2827-ga2", CPU_S390_2827_GA2, "IBM
> zEnterprise EC12 GA2")
[...]
> +int set_s390_cpu_alias(const char *name, const char *model)
> +{
> + S390CPUAlias *alias;
> +
> + if (!name || !model) {
> + return -EINVAL;
> + }
> + if (!strcmp(name, model)) {
> + return -EINVAL;
> + }
> + if (!s390_cpu_class_by_name(model)) {
> + return -EINVAL;
> + }
> + alias = g_try_malloc0(sizeof(S390CPUAlias));
> + if (!alias) {
> + return -ENOMEM;
> + }
> + alias->name = g_strdup(name);
> + alias->model = g_strdup(model);
> + s390_cpu_aliases = g_slist_append(s390_cpu_aliases, alias);
> + return 0;
> +}
> +
Applying: target-s390x: Add S390 CPU model alias definition routines
/home/cborntra/REPOS/qemu/.git/rebase-apply/patch:96: new blank line at EOF.
+
warning: 1 line adds whitespace errors.
- Re: [Qemu-devel] [PATCH v5 06/17] target-s390x: Introduce S390 CPU facilities, (continued)
[Qemu-devel] [PATCH v5 01/17] Introduce stub routine cpu_desc_avail, Michael Mueller, 2015/04/13
[Qemu-devel] [PATCH v5 16/17] target-s390x: Introduce S390 CPU facility test routine, Michael Mueller, 2015/04/13
[Qemu-devel] [PATCH v5 14/17] target-s390x: Initialize S390 CPU model name in CPUState, Michael Mueller, 2015/04/13
[Qemu-devel] [PATCH v5 11/17] target-s390x: Add KVM VM attribute interface for S390 CPU models, Michael Mueller, 2015/04/13
[Qemu-devel] [PATCH v5 08/17] target-s390x: Introduce S390 CPU models, Michael Mueller, 2015/04/13
[Qemu-devel] [PATCH v5 10/17] target-s390x: Add S390 CPU model alias definition routines, Michael Mueller, 2015/04/13
- Re: [Qemu-devel] [PATCH v5 10/17] target-s390x: Add S390 CPU model alias definition routines,
Christian Borntraeger <=
[Qemu-devel] [PATCH v5 17/17] target-s390x: Enable S390 CPU model usage, Michael Mueller, 2015/04/13
[Qemu-devel] [PATCH v5 09/17] target-s390x: Define S390 CPU model specific facility lists, Michael Mueller, 2015/04/13
[Qemu-devel] [PATCH v5 15/17] target-s390x: Extend arch specific QMP command query-cpu-definitions, Michael Mueller, 2015/04/13
[Qemu-devel] [PATCH v5 07/17] target-s390x: Generate facility defines per S390 CPU model, Michael Mueller, 2015/04/13
[Qemu-devel] [PATCH v5 13/17] target-s390x: Prepare accelerator during S390 CPU object realization, Michael Mueller, 2015/04/13
[Qemu-devel] [PATCH v5 12/17] target-s390x: Add S390 CPU class initialization routines, Michael Mueller, 2015/04/13