summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Auger <eric.auger@linaro.org>2015-12-21 16:36:04 +0100
committerChristoffer Dall <christoffer.dall@linaro.org>2016-05-20 15:40:01 +0200
commite2c1f9abff83ee0ad0f78e03918c7edf070edb39 (patch)
tree69d0b77f3df4b5051fce061ebe6c84e78e11df53 /include
parentafcc7c50ce6e2fb18fd0535813c1d612265b1899 (diff)
downloadlinux-e2c1f9abff83ee0ad0f78e03918c7edf070edb39.tar.bz2
KVM: arm/arm64: vgic-new: vgic_kvm_device: implement kvm_vgic_addr
kvm_vgic_addr is used by the userspace to set the base address of the following register regions, as seen by the guest: - distributor(v2 and v3), - re-distributors (v3), - CPU interface (v2). Signed-off-by: Eric Auger <eric.auger@linaro.org> Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/kvm/vgic/vgic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/kvm/vgic/vgic.h b/include/kvm/vgic/vgic.h
index 00e3dca10a63..3689b9bf3af7 100644
--- a/include/kvm/vgic/vgic.h
+++ b/include/kvm/vgic/vgic.h
@@ -194,6 +194,8 @@ struct vgic_cpu {
u64 live_lrs;
};
+int kvm_vgic_addr(struct kvm *kvm, unsigned long type, u64 *addr, bool write);
+
int kvm_vgic_inject_irq(struct kvm *kvm, int cpuid, unsigned int intid,
bool level);