diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2014-03-06 03:30:46 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-03-06 09:47:42 +0100 |
commit | 6cbde8253a8143ada18ec0d1711230747a7c1934 (patch) | |
tree | ed3027218c1561f0d18d0d113250fe26d660ce88 /include/kvm | |
parent | 1b385cbdd74aa803e966e01e5fe49490d6044e30 (diff) | |
download | blackbird-op-linux-6cbde8253a8143ada18ec0d1711230747a7c1934.tar.gz blackbird-op-linux-6cbde8253a8143ada18ec0d1711230747a7c1934.zip |
ARM: KVM: fix non-VGIC compilation
Add a stub for kvm_vgic_addr when compiling without
CONFIG_KVM_ARM_VGIC. The usefulness of this configurarion is extremely
doubtful, but let's fix it anyway (until we decide that we'll always
support a VGIC).
Reported-by: Michele Paolino <m.paolino@virtualopensystems.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/kvm')
-rw-r--r-- | include/kvm/arm_vgic.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h index be85127bfed3..f27000f55a83 100644 --- a/include/kvm/arm_vgic.h +++ b/include/kvm/arm_vgic.h @@ -171,6 +171,11 @@ static inline int kvm_vgic_set_addr(struct kvm *kvm, unsigned long type, u64 add return 0; } +static inline int kvm_vgic_addr(struct kvm *kvm, unsigned long type, u64 *addr, bool write) +{ + return -ENXIO; +} + static inline int kvm_vgic_init(struct kvm *kvm) { return 0; |