From nobody Wed May 1 00:22:47 2024 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1512144141745326.05187519765093; Fri, 1 Dec 2017 08:02:21 -0800 (PST) Received: from localhost ([::1]:58329 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKnlM-0005Cu-Ky for importer@patchew.org; Fri, 01 Dec 2017 11:02:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKnYA-00021x-1k for qemu-devel@nongnu.org; Fri, 01 Dec 2017 10:49:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKnXW-00012S-Gx for qemu-devel@nongnu.org; Fri, 01 Dec 2017 10:48:26 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:46352 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eKnXW-00011c-8m for qemu-devel@nongnu.org; Fri, 01 Dec 2017 10:47:46 -0500 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vB1BOGse006258 for ; Fri, 1 Dec 2017 06:24:20 -0500 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ek3vsej8a-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 01 Dec 2017 06:24:20 -0500 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 1 Dec 2017 11:24:18 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 1 Dec 2017 11:24:15 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id vB1BOFRV33095788; Fri, 1 Dec 2017 11:24:15 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CB194AE045; Fri, 1 Dec 2017 11:17:19 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E154AAE04D; Fri, 1 Dec 2017 11:17:17 +0000 (GMT) Received: from oc1548405160.ibm.com (unknown [9.79.185.68]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Fri, 1 Dec 2017 11:17:17 +0000 (GMT) From: Seeteena Thoufeek To: david@gibson.dropbear.id.au, agraf@suse.de, qemu-ppc@nongnu.org, qemu-devel@nongnu.org Date: Fri, 1 Dec 2017 16:54:09 +0530 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 x-cbid: 17120111-0016-0000-0000-00000507C4D8 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17120111-0017-0000-0000-00002843B480 Message-Id: <1512127449-11114-1-git-send-email-s1seetee@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-12-01_02:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1712010142 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 148.163.158.5 Subject: [Qemu-devel] [PATCH v1] spapr.c: Update qemu's maxcpus for pseries machine. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: s1seetee@linux.vnet.ibm.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_6 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Need to adjust the max cpus supported number from error message since it was conflicting with KVM's. Steps to Reproduce: 1.boot up with "-smp 64,maxcpus=3D102464,cores=3D8,threads=3D1,sockets=3D8" qemu-kvm: Number of SMP CPUs requested (102464) exceeds max CPUs supported by machine 'pseries-rhel7.4.0alt' (1024) 2. On KVM machine it shows boot up with "-m 6G,maxmem=3D300G,slots=3D256 -smp 64,maxcpus=3D1024,cores=3D8,threads= =3D1 ,sockets=3D128" Number of hotpluggable cpus requested (1024) exceeds the maximum cpus supported by KVM (240) It seemed that 1024 was useless since KVM only support 240 so far. Hence,we need to adjust it to an reasonable value 240. Signed-off-by: Seeteena Thoufeek --- hw/ppc/spapr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 9efddea..c753254 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -3691,6 +3691,7 @@ static const TypeInfo spapr_machine_info =3D { if (latest) { \ mc->alias =3D "pseries"; \ mc->is_default =3D 1; \ + mc->max_cpus =3D 240; \ } \ } \ static void spapr_machine_##suffix##_instance_init(Object *obj) \ --=20 1.8.3.1