All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH kvmtool] aarch64: Give up with MTE for AArch32 guest
@ 2022-05-20 12:38 ` Vladimir Murzin
  0 siblings, 0 replies; 10+ messages in thread
From: Vladimir Murzin @ 2022-05-20 12:38 UTC (permalink / raw)
  To: linux-arm-kernel, kvmarm; +Cc: will, maz

KVM doesn't support combination of MTE and AArch32 guest, so do not
even try.

Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
---
 arm/aarch64/kvm.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arm/aarch64/kvm.c b/arm/aarch64/kvm.c
index 1b992dd..f3fe854 100644
--- a/arm/aarch64/kvm.c
+++ b/arm/aarch64/kvm.c
@@ -120,6 +120,11 @@ void kvm__arch_enable_mte(struct kvm *kvm)
 		.cap = KVM_CAP_ARM_MTE,
 	};
 
+	if (kvm->cfg.arch.aarch32_guest) {
+		pr_debug("MTE is incompatible with AArch32");
+		return;
+	}
+
 	if (kvm->cfg.arch.mte_disabled) {
 		pr_debug("MTE disabled by user");
 		return;
-- 
2.25.1

_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-05-20 20:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-20 12:38 [PATCH kvmtool] aarch64: Give up with MTE for AArch32 guest Vladimir Murzin
2022-05-20 12:38 ` Vladimir Murzin
2022-05-20 13:31 ` Alexandru Elisei
2022-05-20 13:31   ` Alexandru Elisei
2022-05-20 13:48   ` Vladimir Murzin
2022-05-20 13:48     ` Vladimir Murzin
2022-05-20 14:01     ` Alexandru Elisei
2022-05-20 14:01       ` Alexandru Elisei
2022-05-20 20:51 ` Will Deacon
2022-05-20 20:51   ` Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.