summaryrefslogtreecommitdiffstats
path: root/virt/kvm/arm/vgic/vgic-mmio.h
diff options
context:
space:
mode:
authorAndre Przywara2015-12-01 15:34:02 +0100
committerChristoffer Dall2016-05-20 15:39:53 +0200
commit055658bf48fcc6afdf90810e7e8f4e98f486c0d2 (patch)
treeb1d8fe657ecbf820c1687ae4316a205e77670b1a /virt/kvm/arm/vgic/vgic-mmio.h
parentKVM: arm/arm64: vgic-new: Add ACTIVE registers handlers (diff)
downloadkernel-qcow2-linux-055658bf48fcc6afdf90810e7e8f4e98f486c0d2.tar.gz
kernel-qcow2-linux-055658bf48fcc6afdf90810e7e8f4e98f486c0d2.tar.xz
kernel-qcow2-linux-055658bf48fcc6afdf90810e7e8f4e98f486c0d2.zip
KVM: arm/arm64: vgic-new: Add PRIORITY registers handlers
The priority register handlers are shared between the v2 and v3 emulation, so their implementation goes into vgic-mmio.c, to be easily referenced from the v3 emulation as well later. There is a corner case when we change the priority of a pending interrupt which we don't handle at the moment. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'virt/kvm/arm/vgic/vgic-mmio.h')
-rw-r--r--virt/kvm/arm/vgic/vgic-mmio.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/virt/kvm/arm/vgic/vgic-mmio.h b/virt/kvm/arm/vgic/vgic-mmio.h
index 50b4464a0730..7e73f10bf646 100644
--- a/virt/kvm/arm/vgic/vgic-mmio.h
+++ b/virt/kvm/arm/vgic/vgic-mmio.h
@@ -129,6 +129,13 @@ void vgic_mmio_write_sactive(struct kvm_vcpu *vcpu,
gpa_t addr, unsigned int len,
unsigned long val);
+unsigned long vgic_mmio_read_priority(struct kvm_vcpu *vcpu,
+ gpa_t addr, unsigned int len);
+
+void vgic_mmio_write_priority(struct kvm_vcpu *vcpu,
+ gpa_t addr, unsigned int len,
+ unsigned long val);
+
unsigned int vgic_v2_init_dist_iodev(struct vgic_io_device *dev);
#endif