[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1470302117-32296-4-git-send-email-mbrugger@suse.com>
Date: Thu, 4 Aug 2016 11:15:16 +0200
From: Matthias Brugger <mbrugger@...e.com>
To: pbonzini@...hat.com, rkrcmar@...hat.com,
christoffer.dall@...aro.org, marc.zyngier@....com,
linux@...linux.org.uk, catalin.marinas@....com, will.deacon@....com
Cc: suzuki.poulose@....com, james.morse@....com,
david.daney@...ium.com, rrichter@...ium.com, agraf@...e.de,
mbrugger@...e.com, mark.rutland@....com, lorenzo.pieralisi@....com,
dave.long@...aro.org, ard.biesheuvel@...aro.org,
zlim.lnx@...il.com, kvm@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, kvmarm@...ts.cs.columbia.edu,
linux-kernel@...r.kernel.org
Subject: [PATCH 3/4] KVM: arm/arm64: Check for broadcast TLBI support
KVM awaits a working broadcast TLBI implementation.
Error out early when this is not provided by the
hardware.
Signed-off-by: Matthias Brugger <mbrugger@...e.com>
---
arch/arm/kvm/arm.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c
index f1bde7c..e627fac 100644
--- a/arch/arm/kvm/arm.c
+++ b/arch/arm/kvm/arm.c
@@ -1376,6 +1376,11 @@ int kvm_arch_init(void *opaque)
int err;
int ret, cpu;
+ if (cpus_have_cap(ARM64_HAS_NO_BCAST_TLBI)) {
+ kvm_err("Missing broadcast TLBI support.\n");
+ return -ENODEV;
+ }
+
if (!is_hyp_mode_available()) {
kvm_err("HYP mode not available\n");
return -ENODEV;
--
2.6.6
Powered by blists - more mailing lists