Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86A65C433C1 for ; Fri, 19 Mar 2021 16:19:56 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 300ED61980 for ; Fri, 19 Mar 2021 16:19:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 300ED61980 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=7GUgH/P6UrNRrC54Ne31OCeWn4G5nEK2/Idew1u/WPc=; b=iUz1K2YTOFuUEWcGW6Pymnljmg /asZJ3MzCw746gEHvunUnNy2lmG+jcRfi5tvDeD/df3wLUKVqr7ivZfJr5ZJvGPF2XHONY+6Bt8BQ t83NvCY76BeVKE6mu6bnKRoAlgRezWQcD6k5z6L1bIVG+lvfdysdnvI2enLqbhXJT++6hd8UXbykV myD5cSE+RvigbzF6s2sqCVdPI1oAjPZTxCp44aL8w/sLdWwj9EFfP7Q+zmV7cSC5bwhZc8Wh2Uhs3 qapI/YVZe7fCwRb5bBqO7n52JJmNgKuP7mXkq0ZNHf04exF+kZzXTPGhukG6mm/op3/7Bv83Kv4wo 6M4OFxqQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lNHpe-007gAZ-K3; Fri, 19 Mar 2021 16:18:39 +0000 Received: from foss.arm.com ([217.140.110.172]) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lNHp7-007g4K-Hv for linux-arm-kernel@lists.infradead.org; Fri, 19 Mar 2021 16:18:10 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F35EA31B; Fri, 19 Mar 2021 09:17:57 -0700 (PDT) Received: from yoan-MS-7758.Home (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A17803F718; Fri, 19 Mar 2021 09:17:56 -0700 (PDT) From: Yoan Picchi To: maz@kernel.org, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu Cc: catalin.marinas@arm.com, will@kernel.org, Yoan Picchi Subject: [PATCH 0/7] KVM: arm64: add more event counters for kvm_stat Date: Fri, 19 Mar 2021 16:17:04 +0000 Message-Id: <20210319161711.24972-1-yoan.picchi@arm.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210319_161805_896590_AA28A361 X-CRM114-Status: UNSURE ( 9.12 ) X-CRM114-Notice: Please train this message. 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: , MIME-Version: 1.0 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 Hi all, As mentioned in the KVM forum talk from 2019 (https://kvmforum2019.sched.com/event/Tmwf/kvmstat-and-beyond-past-present-and-future-of-performance-monitoring-christian-borntrager-ibm page 10), there is few event counters for kvm_stat in the arm64 version of kvm when you compare it to something like the x86 version. Those counters are used in kvm_stat by kernel/driver developers to have a rough idea of the impact of their patches on the general performance. An example would be to make sure a patch don't increase to much the amount of interruptions. Those patches aim to add more counters to make the use of kvm_stat more relevant when measuring performance impact. I am new in working on kernel-related things and I am learning kvm as I go. Some of the counter I added early (memory_slot_unmaped, stage2_unmap_vm) no longer seems relevant because while they do interesting things, they happens in very specific scenarios. Instead of just deleting them, I prefer to ask weither a little-used counter or no counter is the best. I can also use some suggestion on how to test those counters as some like remote_tlb_flush which mostly happen when fixing up a race condition; or what uncovered event could be worth adding in a future patch set. Yoan Picchi (7): KVM: arm64: Add two page mapping counters for kvm_stat KVM: arm64: Add remote_tlb_flush counter for kvm_stat KVM: arm64: Add cached_page_invalidated counter for kvm_stat KVM: arm64: Add flush_all_cache_lines counter for kvm_stat KVM: arm64: Add memory_slot_unmaped counter for kvm_stat KVM: arm64: Add stage2_unmap_vm counter for kvm_stat KVM: arm64: Add irq_inject counter for kvm_stat arch/arm64/include/asm/kvm_host.h | 8 ++++++++ arch/arm64/kvm/arm.c | 2 ++ arch/arm64/kvm/guest.c | 9 +++++++++ arch/arm64/kvm/mmu.c | 27 ++++++++++++++++++++++++++- arch/arm64/kvm/vgic/vgic.c | 2 ++ 5 files changed, 47 insertions(+), 1 deletion(-) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel