From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F300015B9 for ; Fri, 8 Sep 2023 07:21:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 740C6C433C7; Fri, 8 Sep 2023 07:21:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694157710; bh=hlIhJE37roD5m52PpdY5rfE7FOoKJCNEwPzflmRv0T0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=D/ynPj79vSCSk4N2ObB33HQKPgPKX3Sduc54P1euof5oDbPRKk8WHhYj1fDK2IjMQ ri8scMbD7KqSxkRHIZQQuwTPWsbm0o20tXVXJCR8o919WQBbNQ/byrKF/69b9CjVXf cXLmDElj5YYYO0rl2GifqRc4QhfBSFb3+xgqAeqEC1Z+G7hrk9SPWJl7LOoxxXTKCp CzfhJKDzQeWmgi3yRTLOqR7BzhtebyAIeODyolt1U/4G6JVentY3QCz0GEMk4WBWuy yvsYEMGgjIVHY1C8YXSjMFsS24RlIllUMyUBFauCg6c0tAv6q9F/lZjPOdi3MYtOzl b0VlyIZIqEqGw== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qeVoJ-00BILK-RH; Fri, 08 Sep 2023 08:21:47 +0100 Date: Fri, 08 Sep 2023 08:21:47 +0100 Message-ID: <86cyytdt9w.wl-maz@kernel.org> From: Marc Zyngier To: Joey Gouly Cc: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu , Xu Zhao Subject: Re: [PATCH 0/5] KVM: arm64: Accelerate lookup of vcpus by MPIDR values In-Reply-To: <20230907202712.GA171716@e124191.cambridge.arm.com> References: <20230907100931.1186690-1-maz@kernel.org> <20230907153052.GD69899@e124191.cambridge.arm.com> <871qf9q25c.wl-maz@kernel.org> <20230907202712.GA171716@e124191.cambridge.arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: joey.gouly@arm.com, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com, zhaoxu.35@bytedance.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Thu, 07 Sep 2023 21:27:12 +0100, Joey Gouly wrote: > > On Thu, Sep 07, 2023 at 07:17:03PM +0100, Marc Zyngier wrote: > > On Thu, 07 Sep 2023 16:30:52 +0100, > > Joey Gouly wrote: > > > > [...] > > > > > Got a roughly similar perf improvement (about 28%). > > > > Out of curiosity, on which HW? > > I used QEMU emulation, but was told after posting this that QEMU is probably > not good to be used for perf measurments? Sorry about that. I can retry on Juno > tomorrow if that's of any use. Indeed, using models for performance measurement is pretty unreliable, and will give you a rather different profile from the HW. Unfortunately, Juno has only a GICv2, which won't see any significant gain. You'll need something with a GICv3, as the whole interrupt routing (SGI and SPI) is MPIDR based. Thanks, M. -- Without deviation from the norm, progress is not possible. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5969FEE57E0 for ; Fri, 8 Sep 2023 07:22:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9cXAfGM+eKXe/RPD7BBby+Td4ztH/d6SQu75RAYjAv0=; b=wpZ1Pf5Gu+edEL UZNXq6Rlsn3Pa3xqDCY35u0DguS/a2XynISAou9cnpIIPiadeM8RDICqDf/dgsuAxNdVocFqPyobW bOJIUYN6RwVXcVAt6lS+VqCTrjgy2RDjOkpYBORSv5NT0QaoPzd2A+UTnKsxzylmblyNq8p56KD6V NKNEhQygX/WbKEx2f0igRJUesiXmmNh7ycZg2Ej/52KdTQfUMpb5XSm5UagfboFsdtiQd+mebeYbw IbmtwkilFHmRFm+h37iEcZfH3yv/HZu2gI1P7sD6iYnd/0/csuQAb6X4GpKrXmJakmmqqXdP68Ukt e1HuoQQhNwBUeMUO24eg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qeVoS-00DEti-3D; Fri, 08 Sep 2023 07:21:57 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qeVoQ-00DEso-0w for linux-arm-kernel@lists.infradead.org; Fri, 08 Sep 2023 07:21:55 +0000 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 14F2361380; Fri, 8 Sep 2023 07:21:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 740C6C433C7; Fri, 8 Sep 2023 07:21:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694157710; bh=hlIhJE37roD5m52PpdY5rfE7FOoKJCNEwPzflmRv0T0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=D/ynPj79vSCSk4N2ObB33HQKPgPKX3Sduc54P1euof5oDbPRKk8WHhYj1fDK2IjMQ ri8scMbD7KqSxkRHIZQQuwTPWsbm0o20tXVXJCR8o919WQBbNQ/byrKF/69b9CjVXf cXLmDElj5YYYO0rl2GifqRc4QhfBSFb3+xgqAeqEC1Z+G7hrk9SPWJl7LOoxxXTKCp CzfhJKDzQeWmgi3yRTLOqR7BzhtebyAIeODyolt1U/4G6JVentY3QCz0GEMk4WBWuy yvsYEMGgjIVHY1C8YXSjMFsS24RlIllUMyUBFauCg6c0tAv6q9F/lZjPOdi3MYtOzl b0VlyIZIqEqGw== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qeVoJ-00BILK-RH; Fri, 08 Sep 2023 08:21:47 +0100 Date: Fri, 08 Sep 2023 08:21:47 +0100 Message-ID: <86cyytdt9w.wl-maz@kernel.org> From: Marc Zyngier To: Joey Gouly Cc: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu , Xu Zhao Subject: Re: [PATCH 0/5] KVM: arm64: Accelerate lookup of vcpus by MPIDR values In-Reply-To: <20230907202712.GA171716@e124191.cambridge.arm.com> References: <20230907100931.1186690-1-maz@kernel.org> <20230907153052.GD69899@e124191.cambridge.arm.com> <871qf9q25c.wl-maz@kernel.org> <20230907202712.GA171716@e124191.cambridge.arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: joey.gouly@arm.com, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com, zhaoxu.35@bytedance.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230908_002154_369931_775DC6BB X-CRM114-Status: GOOD ( 18.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 07 Sep 2023 21:27:12 +0100, Joey Gouly wrote: > > On Thu, Sep 07, 2023 at 07:17:03PM +0100, Marc Zyngier wrote: > > On Thu, 07 Sep 2023 16:30:52 +0100, > > Joey Gouly wrote: > > > > [...] > > > > > Got a roughly similar perf improvement (about 28%). > > > > Out of curiosity, on which HW? > > I used QEMU emulation, but was told after posting this that QEMU is probably > not good to be used for perf measurments? Sorry about that. I can retry on Juno > tomorrow if that's of any use. Indeed, using models for performance measurement is pretty unreliable, and will give you a rather different profile from the HW. Unfortunately, Juno has only a GICv2, which won't see any significant gain. You'll need something with a GICv3, as the whole interrupt routing (SGI and SPI) is MPIDR based. Thanks, M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel