Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1456231

[PATCH 3/4] KVM: arm/arm64: Check for broadcast TLBI support

From Matthias Brugger <mbrugger@suse.com>
Newsgroups linux.kernel
Subject [PATCH 3/4] KVM: arm/arm64: Check for broadcast TLBI support
Date 2016-08-04 11:20 +0200
Message-ID <s2mYN-6W6-5@gated-at.bofh.it> (permalink)
References <s2mYN-6W6-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


KVM awaits a working broadcast TLBI implementation.
Error out early when this is not provided by the
hardware.

Signed-off-by: Matthias Brugger <mbrugger@suse.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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 3/4] KVM: arm/arm64: Check for broadcast TLBI support Matthias Brugger <mbrugger@suse.com> - 2016-08-04 11:20 +0200
  Re: [PATCH 3/4] KVM: arm/arm64: Check for broadcast TLBI support kbuild test robot <lkp@intel.com> - 2016-08-06 23:00 +0200

csiph-web