From nobody Wed Nov 27 02:34:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1701092243; cv=none; d=zohomail.com; s=zohoarc; b=DCE5lQzCaR0F9Z9n6g9Trx1KF0LdTVQGnWJQk/fG/nAKSdetgOWsg7Gps1yP2H7Jni2I0ImjRwEYhH822uWDqMUlZERTu19TZdMxGxGl5JFfOrdg17K3Yh/ASGlgdBZUhKSOMm27O0/U/EeBe7LSTp3ilgREMY3HkRJLEvd3zlc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1701092243; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Zstit3vgL8e1LUgOTt+jhI9E4+9X164ICblBF7ewxjw=; b=gBY6AtDfpIGrcPfTFLCQ4lKUJzW9S8qOB3YtZVMhDTNi0TtjaobsmtYlUmZz0TFj6xNVxjX0/lruM4ggY2pvoxUIZTnXiv1KHVlRolmpWfs7QcRbpUPXGS8fXawaCmuzu7x914rF8yX/YpHVkemjy0RysicGivlG2mQubLJCgMM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1701092242820524.1613901869757; Mon, 27 Nov 2023 05:37:22 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7bnU-0004ic-MP; Mon, 27 Nov 2023 08:37:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7bnQ-0004iC-Uc; Mon, 27 Nov 2023 08:37:08 -0500 Received: from mgamail.intel.com ([134.134.136.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7bnO-0004kA-Sw; Mon, 27 Nov 2023 08:37:08 -0500 Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2023 05:37:04 -0800 Received: from liuzhao-optiplex-7080.sh.intel.com ([10.239.160.36]) by fmsmga007.fm.intel.com with ESMTP; 27 Nov 2023 05:37:02 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701092226; x=1732628226; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=CWhBjRkSbqANn+mLHDp+w6S4baYfmYMcV7HRxpAvnec=; b=LjGhoYco3mBNkTgJ2U9JwNpP7xe8uXWRWNS9Cy45DxRw4EuLWWGkSqaV dfN3x2AJAPgSzrn4DDGRNpA+bytKQCmTens4aRKaoPW7FbX4N+LDMSgCg Ad+YkR/DxF3EsQNhNTgYbdNqvzvG9DOXcxfFfMvJP+XEeThPejViIcaPl 6h2p/JJf+T2Us6zzL4c8A9henncOGCHHKUyAwe8N5I6s5LazAEr9S1fLM 7ftdzrrwvnof+GOILkOS2RqdnbUIYp/nitqbMr2+l1dE0fMyxWUVrT70n 3c+LMmDBbzMmm0jKYTmOOW5A6FN+eKN4ki7yY74Ya14Oz3+uOWdmd6Kwb A==; X-IronPort-AV: E=McAfee;i="6600,9927,10906"; a="396606756" X-IronPort-AV: E=Sophos;i="6.04,231,1695711600"; d="scan'208";a="396606756" X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10906"; a="771927394" X-IronPort-AV: E=Sophos;i="6.04,231,1695711600"; d="scan'208";a="771927394" From: Zhao Liu To: Nina Schoetterl-Glausch , Thomas Huth , qemu-devel@nongnu.org, qemu-s390x@nongnu.org Cc: Zhao Liu Subject: [PATCH v2] docs/s390: Fix wrong command example in s390-cpu-topology.rst Date: Mon, 27 Nov 2023 21:49:17 +0800 Message-Id: <20231127134917.568552-1-zhao1.liu@linux.intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=134.134.136.65; envelope-from=zhao1.liu@linux.intel.com; helo=mgamail.intel.com X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1701092244993000003 Content-Type: text/plain; charset="utf-8" From: Zhao Liu From s390_possible_cpu_arch_ids() in hw/s390x/s390-virtio-ccw.c, the "core-id" is the index of possible_cpus->cpus[], so it should only be less than possible_cpus->len, which is equal to ms->smp.max_cpus. Fix the wrong "core-id" 112, because it isn't less than maxcpus (36) in -smp, and the valid core ids are 0-35 inclusive. Signed-off-by: Zhao Liu Reviewed-by: Nina Schoetterl-Glausch --- Changes since v1 RFC: * Fixed typo. (Nina) * Polished the description of the reason for fixing the wrong core-id. (Nina) --- docs/devel/s390-cpu-topology.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/devel/s390-cpu-topology.rst b/docs/devel/s390-cpu-topolog= y.rst index 9eab28d5e5d8..48313b92d417 100644 --- a/docs/devel/s390-cpu-topology.rst +++ b/docs/devel/s390-cpu-topology.rst @@ -15,7 +15,7 @@ have default values: -smp 1,drawers=3D3,books=3D3,sockets=3D2,cores=3D2,maxcpus=3D36 \ -device z14-s390x-cpu,core-id=3D19,entitlement=3Dhigh \ -device z14-s390x-cpu,core-id=3D11,entitlement=3Dlow \ - -device z14-s390x-cpu,core-id=3D112,entitlement=3Dhigh \ + -device z14-s390x-cpu,core-id=3D12,entitlement=3Dhigh \ ... =20 Additions to query-cpus-fast @@ -78,7 +78,7 @@ modifiers for all configured vCPUs. "dedicated": true, "thread-id": 537005, "props": { - "core-id": 112, + "core-id": 12, "socket-id": 0, "drawer-id": 3, "book-id": 2 @@ -86,7 +86,7 @@ modifiers for all configured vCPUs. "cpu-state": "operating", "entitlement": "high", "qom-path": "/machine/peripheral-anon/device[2]", - "cpu-index": 112, + "cpu-index": 12, "target": "s390x" } ] --=20 2.34.1