summaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2013-04-08 17:47:18 +0200
committerChristoffer Dall <cdall@cs.columbia.edu>2013-04-29 07:23:12 +0200
commit17b1e31f9201fc102ee3ddd409988e47753e22f9 (patch)
treec500ae28f6c2a4ad2c36c74a9c648f6fee468faf /arch/arm/include
parentARM: KVM: perform HYP initilization for hotplugged CPUs (diff)
downloadlinux-17b1e31f9201fc102ee3ddd409988e47753e22f9.tar.xz
linux-17b1e31f9201fc102ee3ddd409988e47753e22f9.zip
ARM: KVM: add architecture specific hook for capabilities
Most of the capabilities are common to both arm and arm64, but we still need to handle the exceptions. Introduce kvm_arch_dev_ioctl_check_extension, which both architectures implement (in the 32bit case, it just returns 0). Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/kvm_host.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/include/asm/kvm_host.h b/arch/arm/include/asm/kvm_host.h
index 6c2a35da867e..dcfcbf59fceb 100644
--- a/arch/arm/include/asm/kvm_host.h
+++ b/arch/arm/include/asm/kvm_host.h
@@ -214,6 +214,11 @@ static inline void __cpu_init_hyp_mode(unsigned long long boot_pgd_ptr,
kvm_call_hyp((void*)hyp_stack_ptr, vector_ptr, pgd_ptr);
}
+static inline int kvm_arch_dev_ioctl_check_extension(long ext)
+{
+ return 0;
+}
+
int kvm_perf_init(void);
int kvm_perf_teardown(void);