[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230127114108.10025-14-joey.gouly@arm.com>
Date: Fri, 27 Jan 2023 11:40:54 +0000
From: Joey Gouly <joey.gouly@....com>
To: Andrew Jones <andrew.jones@...ux.dev>, <kvmarm@...ts.linux.dev>,
<kvm@...r.kernel.org>
CC: <joey.gouly@....com>, Alexandru Elisei <alexandru.elisei@....com>,
Christoffer Dall <christoffer.dall@....com>,
Fuad Tabba <tabba@...gle.com>,
Jean-Philippe Brucker <jean-philippe@...aro.org>,
Joey Gouly <Joey.Gouly@....com>, Marc Zyngier <maz@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Oliver Upton <oliver.upton@...ux.dev>,
Paolo Bonzini <pbonzini@...hat.com>,
Quentin Perret <qperret@...gle.com>,
Steven Price <steven.price@....com>,
Suzuki K Poulose <suzuki.poulose@....com>,
"Thomas Huth" <thuth@...hat.com>, Will Deacon <will@...nel.org>,
Zenghui Yu <yuzenghui@...wei.com>,
<linux-coco@...ts.linux.dev>, <kvmarm@...ts.cs.columbia.edu>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>
Subject: [RFC kvm-unit-tests 13/27] arm: selftest: realm: skip pabt test when running in a realm
From: Alexandru Elisei <alexandru.elisei@....com>
The realm manager treats instruction aborts as fatal errors, skip this
test.
Signed-off-by: Alexandru Elisei <alexandru.elisei@....com>
Signed-off-by: Joey Gouly <joey.gouly@....com>
---
arm/selftest.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arm/selftest.c b/arm/selftest.c
index 6f825add..174f2ebc 100644
--- a/arm/selftest.c
+++ b/arm/selftest.c
@@ -18,6 +18,7 @@
#include <asm/smp.h>
#include <asm/mmu.h>
#include <asm/barrier.h>
+#include <asm/rsi.h>
static cpumask_t ready, valid;
@@ -392,11 +393,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.17.1
Powered by blists - more mailing lists