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


Groups > linux.kernel > #1456231 > unrolled thread

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

Started byMatthias Brugger <mbrugger@suse.com>
First post2016-08-04 11:20 +0200
Last post2016-08-06 23:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [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

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

FromMatthias Brugger <mbrugger@suse.com>
Date2016-08-04 11:20 +0200
Subject[PATCH 3/4] KVM: arm/arm64: Check for broadcast TLBI support
Message-ID<s2mYN-6W6-5@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1457348

Fromkbuild test robot <lkp@intel.com>
Date2016-08-06 23:00 +0200
Message-ID<s3gRj-2h2-1@gated-at.bofh.it>
In reply to#1456231

[Multipart message — attachments visible in raw view] — view raw

Hi Matthias,

[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on v4.7]
[cannot apply to next-20160805]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Matthias-Brugger/arm64-insn-Do-not-disable-irqs-during-patching/20160804-172016
base:   https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: arm-axm55xx_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 5.4.0-6) 5.4.0 20160609
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   arch/arm/kvm/arm.c: In function 'kvm_arch_init':
>> arch/arm/kvm/arm.c:1378:6: error: implicit declaration of function 'cpus_have_cap' [-Werror=implicit-function-declaration]
     if (cpus_have_cap(ARM64_HAS_NO_BCAST_TLBI)) {
         ^
>> arch/arm/kvm/arm.c:1378:20: error: 'ARM64_HAS_NO_BCAST_TLBI' undeclared (first use in this function)
     if (cpus_have_cap(ARM64_HAS_NO_BCAST_TLBI)) {
                       ^
   arch/arm/kvm/arm.c:1378:20: note: each undeclared identifier is reported only once for each function it appears in
   cc1: some warnings being treated as errors

vim +/cpus_have_cap +1378 arch/arm/kvm/arm.c

  1372	 */
  1373	int kvm_arch_init(void *opaque)
  1374	{
  1375		int err;
  1376		int ret, cpu;
  1377	
> 1378		if (cpus_have_cap(ARM64_HAS_NO_BCAST_TLBI)) {
  1379			kvm_err("Missing broadcast TLBI support.\n");
  1380			return -ENODEV;
  1381		}

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web