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 B3D27C4345F for ; Mon, 22 Apr 2024 15:48:38 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HyjvBHqnzoBjFugDoM+HGzMICjwchK98v9qTRbkcqIo=; b=WPvAYcqQyuYRTP mDApnJDPmcIcDm2l9JNLcRJzP5fBmp+TD5M2hXtW+3xqYlkGTmtwzoeeK61Bd7qTa3XvCbBltDpzu 6abxZLc5Le7DyU7FdOM9Gl2GRizDy9Xr9NnmiaEW5cnvJjTf5hwF3udIqS3aiONw8LoPAp0pTFf+g 5BlGQo04lo1Ug3CIsz2ajTUxGF4bKesc/qWO2GvjmGeoUqXiDJ7oH2gmpexvykjZOXe2BqL+ccWb5 +qP0SGVdACjOfh48cgFG4Z/Jvb63+B9jtgywe6QcIgY6gbb+WWYph+axpgP+YqBLkrxOc55ycUVHA qujLZIBwOmtCgjY3gjbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ryvu4-0000000EAni-1Q8h; Mon, 22 Apr 2024 15:48:24 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ryvu1-0000000EAmk-2Gtv for linux-arm-kernel@lists.infradead.org; Mon, 22 Apr 2024 15:48:22 +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 7C9312F; Mon, 22 Apr 2024 08:48:48 -0700 (PDT) Received: from arm.com (e121798.cambridge.arm.com [10.1.197.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9B2F63F73F; Mon, 22 Apr 2024 08:48:18 -0700 (PDT) Date: Mon, 22 Apr 2024 16:48:16 +0100 From: Alexandru Elisei To: Suzuki K Poulose Cc: kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-coco@lists.linux.dev, linux-arm-kernel@lists.infradead.org, maz@kernel.org, joey.gouly@arm.com, steven.price@arm.com, james.morse@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com, andrew.jones@linux.dev, eric.auger@redhat.com Subject: Re: [kvm-unit-tests PATCH 14/33] arm: selftest: realm: skip pabt test when running in a realm Message-ID: References: <20240412103408.2706058-1-suzuki.poulose@arm.com> <20240412103408.2706058-15-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240412103408.2706058-15-suzuki.poulose@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240422_084821_645597_A3556D32 X-CRM114-Status: GOOD ( 19.30 ) 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 Hi, On Fri, Apr 12, 2024 at 11:33:49AM +0100, Suzuki K Poulose wrote: > From: Alexandru Elisei > > The realm manager treats instruction aborts as fatal errors, skip this > test. I wrote the commit message, and now I don't remember if this was a limitation of the (at the time) implementation for the realm manager that I used for developing the patch or if this was specified in the architecture :( Would you mind clearing that up? Thanks, Alex > > Signed-off-by: Alexandru Elisei > Signed-off-by: Joey Gouly > Signed-off-by: Suzuki K Poulose > --- > arm/selftest.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/arm/selftest.c b/arm/selftest.c > index 1553ed8e..8caadad3 100644 > --- a/arm/selftest.c > +++ b/arm/selftest.c > @@ -19,6 +19,7 @@ > #include > #include > #include > +#include > > static cpumask_t ready, valid; > > @@ -393,11 +394,17 @@ static void check_vectors(void *arg __unused) > user_psci_system_off); > #endif > } else { > + if (is_realm()) { > + report_skip("pabt test not supported in a realm"); > + goto out; > + } > + > if (!check_pabt_init()) > report_skip("Couldn't guess an invalid physical address"); > else > report(check_pabt(), "pabt"); > } > +out: > exit(report_summary()); > } > > -- > 2.34.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel