diff options
author | Eric Auger | 2015-06-02 15:56:23 +0200 |
---|---|---|
committer | Peter Maydell | 2015-06-02 15:56:25 +0200 |
commit | 1850b6b7d027bb4b45010a7d1da919267fff2cd4 (patch) | |
tree | 3b09b37bef4e6553dca6c55a1d01f603c1058f35 /include/sysemu/kvm.h | |
parent | pl061: fix wrong calculation of GPIOMIS register (diff) | |
download | qemu-1850b6b7d027bb4b45010a7d1da919267fff2cd4.tar.gz qemu-1850b6b7d027bb4b45010a7d1da919267fff2cd4.tar.xz qemu-1850b6b7d027bb4b45010a7d1da919267fff2cd4.zip |
kvm: introduce kvm_arch_msi_data_to_gsi
On ARM the MSI data corresponds to the shared peripheral interrupt (SPI)
ID. This latter equals to the SPI index + 32. to retrieve the SPI index,
matching the gsi, an architecture specific function is introduced.
Signed-off-by: Eric Auger <eric.auger@linaro.org>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/sysemu/kvm.h')
-rw-r--r-- | include/sysemu/kvm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h index 4878959404..f459fbdbd4 100644 --- a/include/sysemu/kvm.h +++ b/include/sysemu/kvm.h @@ -287,6 +287,8 @@ void kvm_arch_init_irq_routing(KVMState *s); int kvm_arch_fixup_msi_route(struct kvm_irq_routing_entry *route, uint64_t address, uint32_t data); +int kvm_arch_msi_data_to_gsi(uint32_t data); + int kvm_set_irq(KVMState *s, int irq, int level); int kvm_irqchip_send_msi(KVMState *s, MSIMessage msg); |