diff options
| author | Eric Auger | 2015-07-06 20:15:13 +0200 |
|---|---|---|
| committer | Alex Williamson | 2015-07-06 20:15:13 +0200 |
| commit | 197e35249a7360534e1aea0f2268ad0e1aa27121 (patch) | |
| tree | 7c64000a44ac3e30564fa60e90070bb3c44666be /scripts | |
| parent | kvm: rename kvm_irqchip_[add,remove]_irqfd_notifier with gsi suffix (diff) | |
| download | qemu-197e35249a7360534e1aea0f2268ad0e1aa27121.tar.gz qemu-197e35249a7360534e1aea0f2268ad0e1aa27121.tar.xz qemu-197e35249a7360534e1aea0f2268ad0e1aa27121.zip | |
kvm-all.c: add qemu_irq/gsi hash table and utility routines
VFIO platform device needs to setup irqfd but it does not know the
gsi corresponding to the device qemu_irq. This patch proposes to
store a hash table in kvm_state using the qemu_irq as key and the gsi
as a value.
kvm_irqchip_set_qemuirq_gsi allows to insert such a pair. The interrupt
controller is supposed to use it.
kvm_irqchip_[add, remove]_irqfd_notifier allows to setup/tear down
irqfd directly from the qemu_irq.
Signed-off-by: Eric Auger <eric.auger@linaro.org>
Tested-by: Vikram Sethi <vikrams@codeaurora.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
