aboutsummaryrefslogtreecommitdiffstats
path: root/arm
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2013-05-01 16:50:11 +0100
committerWill Deacon <will.deacon@arm.com>2015-06-01 16:39:54 +0100
commit206c41f433bbbb5763851a2f6df928a66f71193e (patch)
tree72c93ab8cb344d77e7c0881aa1fadf172d1516d8 /arm
parentdbfef85064420f1e98d53eb63b17e3162fe0b7e6 (diff)
downloadkvmtool-206c41f433bbbb5763851a2f6df928a66f71193e.tar.gz
kvm tools: ioport: add arch callback to remap IRQ lines for ioport devices
If an architecture other than x86 wants to make use of ioport devices, the interrupt lines will likely need remapping from their fixed values. This patch allows an architecture callback, ioport__map_irq, to map interrupts as appropriate. Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'arm')
-rw-r--r--arm/ioport.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arm/ioport.c b/arm/ioport.c
index 3c03fa05..74ee10ec 100644
--- a/arm/ioport.c
+++ b/arm/ioport.c
@@ -1,5 +1,12 @@
#include "kvm/ioport.h"
+#include "arm-common/gic.h"
+
void ioport__setup_arch(struct kvm *kvm)
{
}
+
+void ioport__map_irq(u8 *irq)
+{
+ *irq = gic__alloc_irqnum();
+}