diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-05-17 10:32:36 -0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-05-21 19:22:50 +0300 |
commit | 39853bbc497d4ca19c553a620afdc459e81d67ce (patch) | |
tree | ec743b6b3c5411d29e493af3b6fe03fcc63bb036 /kvm.h | |
parent | e7b2030862f63ee02331940b9f1742cd025c1908 (diff) | |
download | qemu-39853bbc497d4ca19c553a620afdc459e81d67ce.zip qemu-39853bbc497d4ca19c553a620afdc459e81d67ce.tar.gz qemu-39853bbc497d4ca19c553a620afdc459e81d67ce.tar.bz2 |
kvm: Introduce kvm_irqchip_add/remove_irqfd
Add services to associate an eventfd file descriptor as input with an
IRQ line as output. Such a line can be an input pin of an in-kernel
irqchip or a virtual line returned by kvm_irqchip_add_route.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'kvm.h')
-rw-r--r-- | kvm.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -215,4 +215,7 @@ int kvm_set_ioeventfd_pio_word(int fd, uint16_t adr, uint16_t val, bool assign); int kvm_irqchip_add_msi_route(KVMState *s, MSIMessage msg); void kvm_irqchip_release_virq(KVMState *s, int virq); + +int kvm_irqchip_add_irqfd(KVMState *s, int fd, int virq); +int kvm_irqchip_remove_irqfd(KVMState *s, int fd, int virq); #endif |