Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1088258rwb; Fri, 28 Jul 2023 04:45:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlFzrWC1zI9i0KQ+yGyF6Vj351Aw1vtFqPXiXgZ4iXhyXIOwronjyagLzGYKNtr9Dx7/adg3 X-Received: by 2002:a17:906:3114:b0:994:5577:aeed with SMTP id 20-20020a170906311400b009945577aeedmr1817372ejx.5.1690544729569; Fri, 28 Jul 2023 04:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690544729; cv=none; d=google.com; s=arc-20160816; b=sr5qZ9mx/8J2/8KODPIfilmnBHcpfhYIsnDZmmX6iTrJUME5sq2czk1pajpj1WodAT UPONrdOcO5uMOrqin4ajrmwBAzjwxpSCIcQslDTYWmWQ4C7JVayn98bJQlCfs5t/Mq/S b7W2cUvC+hwGWMwFaPhiOOaTWcq644FU0x+mxRLDfzeEEwKzSTp0Gvr4yoSB8SShiYOA g0bClYl05G+adnowiZozotuYTgPFMWyh6rY9NpJlTNPREiJC2/N4U4lhGi2b/53Xpu+I bq2NFEE7H2wQTWIdWRutU7Ee4BJnbD55QNA69cESmfalgS7aRwSto8GAbBF8dfVlSkR/ skXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HEODFlO3yVc30PJBrX53tD7s9Q3fg2pPXep+5OcDIp4=; fh=Ig1aT+Wi0NZoMsP28nfiTVgx+XrPB4zOANP8+1u4x4M=; b=Oa8ysyx5mWeY1/II4dkMX33xnmkJEKZa77arfhQX+jV9SnRb4AVH+64X6o1BdCyy/n s+7mAcQZNwi1dmyCA96RHsNYcRjcWl46fdVaQCzC/UgcsLn3w2clGjkpeSqjCLaEicUA rl5zsUz3VRzr7ExiMn+sk2vnfv94OveWb5ILxmnU2vIGvo58Kd57AU04VjA0CRRjYmI4 FkI7pmMrUqEgh1205GxkT0emjfNPUJiooOWwwm0/SM5rxncfOzEcqI4xP1GvmOmFfMIE vH2gs0lTVxNgK4G7gfCReWNguY2HBE48+5R5oUkUXMreJ9+TGryTPpmQQVvZgADzhn75 aAug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=plphevbz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g24-20020a1709064e5800b00991ddce682esi2626510ejw.305.2023.07.28.04.45.01; Fri, 28 Jul 2023 04:45:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=plphevbz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234664AbjG1LEz (ORCPT + 99 others); Fri, 28 Jul 2023 07:04:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234277AbjG1LEy (ORCPT ); Fri, 28 Jul 2023 07:04:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E4E72703 for ; Fri, 28 Jul 2023 04:04:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0C902620EE for ; Fri, 28 Jul 2023 11:04:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 613E0C433C7; Fri, 28 Jul 2023 11:04:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690542292; bh=vVWkci1WwNLwwdMkSRyKEv2sVf5zEl+LCr+XUX42JUA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=plphevbzTjSV37PCFXvsNQlzC/EvZJRTZScGE9bIM/OQ2xl97bUbgVy6hpMNnnv/4 XlnX/pACjixCo6RKsp0M/DgKm0XF6WN0ddA2Hxl8fRIeqsvZSmvXbMyctQLkbTJr3s SCM/YC8jlQ07NiIWlVl5pwBbnnrnmJvPQjgJV6BC75B0iztsF2AvrXCqDWd1rGSomt S1C8bBFSyXAYSNnoqch1jD611+ohDyuvuFPX2h5n+2tubtTpdecjQa6K/j2I613Mij ad+H9p+G6ku4iu/21smstd7ywgZwAeainC+lYpJ28jvFmBiX2qaOselkQlt5tPYXwz 8O6+fWKlvGUYg== Received: from sofa.misterjones.org ([185.219.108.64] helo=valley-girl.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qPLH8-0003KT-BQ; Fri, 28 Jul 2023 12:04:50 +0100 From: Marc Zyngier To: kvmarm@lists.linux.dev, Shaoqin Huang Cc: Will Deacon , Oliver Upton , Catalin Marinas , Suzuki K Poulose , James Morse , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] KVM: arm64: Use the known cpu id instead of smp_processor_id() Date: Fri, 28 Jul 2023 12:04:47 +0100 Message-Id: <169054228043.973403.12196964393493377750.b4-ty@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230727090754.1900310-1-shahuang@redhat.com> References: <20230727090754.1900310-1-shahuang@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: kvmarm@lists.linux.dev, shahuang@redhat.com, will@kernel.org, oliver.upton@linux.dev, catalin.marinas@arm.com, suzuki.poulose@arm.com, james.morse@arm.com, yuzenghui@huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 27 Jul 2023 05:07:54 -0400, Shaoqin Huang wrote: > In kvm_arch_vcpu_load(), it has the parameter cpu which is the value of > smp_processor_id(), so no need to get it again. Simply replace it. Applied to next, thanks! [1/1] KVM: arm64: Use the known cpu id instead of smp_processor_id() commit: 1ba11daef0a9b062e40b5393d285c82ab6483730 Cheers, M. -- Without deviation from the norm, progress is not possible.