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.6 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 4BC9FC433E2 for ; Tue, 1 Sep 2020 09:24:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1A3D2206A5 for ; Tue, 1 Sep 2020 09:24:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726117AbgIAJYB (ORCPT ); Tue, 1 Sep 2020 05:24:01 -0400 Received: from foss.arm.com ([217.140.110.172]:39056 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726050AbgIAJYB (ORCPT ); Tue, 1 Sep 2020 05:24:01 -0400 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 BC94D30E; Tue, 1 Sep 2020 02:24:00 -0700 (PDT) Received: from [192.168.0.110] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5E6123F71F; Tue, 1 Sep 2020 02:23:59 -0700 (PDT) Subject: Re: [kvm-unit-tests RFC 0/4] KVM: arm64: Statistical Profiling Extension Tests To: Eric Auger , eric.auger.pro@gmail.com, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, qemu-devel@nongnu.org, drjones@redhat.com, andrew.murray@arm.com, sudeep.holla@arm.com, maz@kernel.org, will@kernel.org, haibo.xu@linaro.org References: <20200831193414.6951-1-eric.auger@redhat.com> From: Alexandru Elisei Message-ID: Date: Tue, 1 Sep 2020 10:24:57 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200831193414.6951-1-eric.auger@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Hi Eric, These patches are extremely welcome! I took over the KVM SPE patches from Andrew Murray, and I was working on something similar to help with development. The KVM series on the public mailing list work only by chance because it is impossible to reliably map the SPE buffer at EL2 when profiling triggers a stage 2 data abort. That's because the DABT is reported asynchronously via the buffer management interrupt and the faulting IPA is not reported anywhere. I'm trying to fix this issue in the next iteration of the series, and then I'll come back to your patches for review and testing. Thanks, Alex On 8/31/20 8:34 PM, Eric Auger wrote: > This series implements tests exercising the Statistical Profiling > Extensions. > > This was tested with associated unmerged kernel [1] and QEMU [2] > series. > > Depending on the comments, I can easily add other tests checking > more configs, additional events and testing migration too. I hope > this can be useful when respinning both series. > > All SPE tests can be launched with: > ./run_tests.sh -g spe > Tests also can be launched individually. For example: > ./arm-run arm/spe.flat -append 'spe-buffer' > > The series can be found at: > https://github.com/eauger/kut/tree/spe_rfc > > References: > [1] [PATCH v2 00/18] arm64: KVM: add SPE profiling support > [2] [PATCH 0/7] target/arm: Add vSPE support to KVM guest > > Eric Auger (4): > arm64: Move get_id_aa64dfr0() in processor.h > spe: Probing and Introspection Test > spe: Add profiling buffer test > spe: Test Profiling Buffer Events > > arm/Makefile.common | 1 + > arm/pmu.c | 1 - > arm/spe.c | 463 ++++++++++++++++++++++++++++++++++++++ > arm/unittests.cfg | 24 ++ > lib/arm64/asm/barrier.h | 1 + > lib/arm64/asm/processor.h | 5 + > 6 files changed, 494 insertions(+), 1 deletion(-) > create mode 100644 arm/spe.c >