From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yme8m-0005Zr-9w for qemu-devel@nongnu.org; Mon, 27 Apr 2015 04:11:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yme8i-00065j-8x for qemu-devel@nongnu.org; Mon, 27 Apr 2015 04:11:44 -0400 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:56020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yme8h-00065G-V2 for qemu-devel@nongnu.org; Mon, 27 Apr 2015 04:11:40 -0400 Received: from /spool/local by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 27 Apr 2015 09:11:38 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 7AAB2219005F for ; Mon, 27 Apr 2015 09:11:18 +0100 (BST) Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t3R8BZ1k8519976 for ; Mon, 27 Apr 2015 08:11:35 GMT Received: from d06av01.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t3R8BXbG010310 for ; Mon, 27 Apr 2015 02:11:34 -0600 Message-ID: <553DEF35.5000901@de.ibm.com> Date: Mon, 27 Apr 2015 10:11:33 +0200 From: Christian Borntraeger MIME-Version: 1.0 References: <1428933396-37887-1-git-send-email-mimu@linux.vnet.ibm.com> <1428933396-37887-11-git-send-email-mimu@linux.vnet.ibm.com> In-Reply-To: <1428933396-37887-11-git-send-email-mimu@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5 10/17] target-s390x: Add S390 CPU model alias definition routines List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Mueller , qemu-devel@nongnu.org, kvm@vger.kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Eduardo Habkost , Gleb Natapov , Alexander Graf , Cornelia Huck , "Jason J. Herne" , Daniel Hansel , Paolo Bonzini , Andreas Faerber , Richard Henderson 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.