From nobody Tue Dec 24 13:11:21 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=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1734607006; cv=none; d=zohomail.com; s=zohoarc; b=RBKbEYNmGgeHcz64c60mEWpgOmkJfoemRTRktjOq0PlssVd7zXauKEn3SvRzYV7EMCm7gie7DFTcy7bn7763AeNdgifbpKl54svnVdEfUh1fiJxp2nI2OxGei7jVskh8yzzCTYf7uajv7Vgj8vqmm8v/ftpMGogVodeLdXHI+5w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1734607006; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=LMk0Fd8qXipReDPWKuqCKkg6CKFoDKbLnMNOzHXJfps=; b=H4bj6BMD0rxPoVITtNpBAucep7My2MR2PlOqH73aHtjdxp3SVVsSmvgKiozfDXSQEJuyZaCdNAOFiMyVSlDgC7q638SOvd1VeRvjHD2m3wBBudkjtvDUiYSxZrN9qNa5rxOF5UOaNQrgUlEvHTGg7uBixtuSkgLkn0C4O1Qmcr0= 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 1734607006095375.8076108328647; Thu, 19 Dec 2024 03:16:46 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOEVl-0004YP-Qo; Thu, 19 Dec 2024 06:16:09 -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 1tOEVg-0004Wl-9G for qemu-devel@nongnu.org; Thu, 19 Dec 2024 06:16:05 -0500 Received: from mgamail.intel.com ([198.175.65.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOEVe-0005H9-Kv for qemu-devel@nongnu.org; Thu, 19 Dec 2024 06:16:03 -0500 Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2024 03:16:03 -0800 Received: from lxy-clx-4s.sh.intel.com ([10.239.48.52]) by fmviesa006.fm.intel.com with ESMTP; 19 Dec 2024 03:15:59 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1734606963; x=1766142963; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=svD0Sz+s3Tirwo4k9cnsmvSDpD6Ex6DEuucB26NUaZ0=; b=arjpRb5Jx7ayt7p9uWKIHXOXyeJ8tfS+N64t/YhCDFVIUu1Fv+lYGrIE /7a5g/NOmwbPpxQ3604Wlj/7LD9IGW6wihTe7bdw3e44AiM+A07/LIVxd AR6HqcB9fVjGtGI1M1GBUE0MNGsgc636e5h7Hu8+M2Jr5BxQLzzbBCZAL iB59JmBQuAKNokxpTFncNjJa2fg2JGj4A4yDWSz1DJqj82yL9+6ekmgO5 JcFurlyCZnuqk24JcMGkLLrsfcnDZkaeJTiTmD0H/lLiI4nwRM71an7ll xWiC62mWjL8Q1CWNdDmmZ9BL5TKuWfk5NslT1/N+PF6omcFU5yFbb8iSz w==; X-CSE-ConnectionGUID: FHT1RwKOReSmGVsqqLY11g== X-CSE-MsgGUID: iYvxkXv7TJGhH7ACG6sUFA== X-IronPort-AV: E=McAfee;i="6700,10204,11290"; a="34994951" X-IronPort-AV: E=Sophos;i="6.12,247,1728975600"; d="scan'208";a="34994951" X-CSE-ConnectionGUID: kIeCHDmXTQi5ge7VRhTtmQ== X-CSE-MsgGUID: 0Rk3RJytTbu9GxgqpAfPnw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,247,1728975600"; d="scan'208";a="97956156" From: Xiaoyao Li To: Paolo Bonzini , Igor Mammedov , Marcel Apfelbaum , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Cc: qemu-devel@nongnu.org, Yanan Wang , Zhao Liu , "Michael S. Tsirkin" , Marcelo Tosatti , xiaoyao.li@intel.com Subject: [PATCH v2 04/10] i386/topology: Update the comment of x86_apicid_from_topo_ids() Date: Thu, 19 Dec 2024 06:01:19 -0500 Message-Id: <20241219110125.1266461-5-xiaoyao.li@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241219110125.1266461-1-xiaoyao.li@intel.com> References: <20241219110125.1266461-1-xiaoyao.li@intel.com> 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: pass client-ip=198.175.65.19; envelope-from=xiaoyao.li@intel.com; helo=mgamail.intel.com X-Spam_score_int: -33 X-Spam_score: -3.4 X-Spam_bar: --- X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=0.998, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: 1734607006922116600 Content-Type: text/plain; charset="utf-8" Update the comment of x86_apicid_from_topo_ids() to match the current implementation, Signed-off-by: Xiaoyao Li Reviewed-by: Zhao Liu --- include/hw/i386/topology.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/hw/i386/topology.h b/include/hw/i386/topology.h index b2c8bf2de158..21b65219a5ca 100644 --- a/include/hw/i386/topology.h +++ b/include/hw/i386/topology.h @@ -121,9 +121,10 @@ static inline unsigned apicid_pkg_offset(X86CPUTopoInf= o *topo_info) } =20 /* - * Make APIC ID for the CPU based on Pkg_ID, Core_ID, SMT_ID + * Make APIC ID for the CPU based on topology and IDs of each topology lev= el. * - * The caller must make sure core_id < nr_cores and smt_id < nr_threads. + * The caller must make sure the ID of each level doesn't exceed the width= of + * the level. */ static inline apic_id_t x86_apicid_from_topo_ids(X86CPUTopoInfo *topo_info, const X86CPUTopoIDs *topo= _ids) --=20 2.34.1