On 26 June 2015 at 18:29, Eric Auger <eric.au...@linaro.org> wrote: > 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.au...@linaro.org> > Tested-by: Vikram Sethi <vikr...@codeaurora.org> > Acked-by: Paolo Bonzini <pbonz...@redhat.com>
Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> thanks -- PMM