From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWX4U-0008Fl-4s for qemu-devel@nongnu.org; Mon, 21 May 2012 14:11:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWX4R-00017Y-BW for qemu-devel@nongnu.org; Mon, 21 May 2012 14:11:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5054) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWX4R-00015Y-3h for qemu-devel@nongnu.org; Mon, 21 May 2012 14:11:03 -0400 From: Avi Kivity Date: Mon, 21 May 2012 19:37:42 +0300 Message-Id: <1337618267-16669-15-git-send-email-avi@redhat.com> In-Reply-To: <1337618267-16669-1-git-send-email-avi@redhat.com> References: <1337618267-16669-1-git-send-email-avi@redhat.com> Subject: [Qemu-devel] [PATCH 14/19] kvm: Publicize kvm_irqchip_release_virq List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Jan Kiszka , Marcelo Tosatti , qemu-devel@nongnu.org, kvm@vger.kernel.org From: Jan Kiszka This allows to drop routes created by kvm_irqchip_add_irq/msi_route again. Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity --- kvm-all.c | 2 +- kvm-stub.c | 4 ++++ kvm.h | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/kvm-all.c b/kvm-all.c index 7f906ca..ca6cec6 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -955,7 +955,7 @@ int kvm_irqchip_commit_routes(KVMState *s) return kvm_vm_ioctl(s, KVM_SET_GSI_ROUTING, s->irq_routes); } -static void kvm_irqchip_release_virq(KVMState *s, int virq) +void kvm_irqchip_release_virq(KVMState *s, int virq) { struct kvm_irq_routing_entry *e; int i; diff --git a/kvm-stub.c b/kvm-stub.c index db3a7dc..ec351d9 100644 --- a/kvm-stub.c +++ b/kvm-stub.c @@ -136,3 +136,7 @@ int kvm_irqchip_add_msi_route(KVMState *s, MSIMessage msg) { return -ENOSYS; } + +void kvm_irqchip_release_virq(KVMState *s, int virq) +{ +} diff --git a/kvm.h b/kvm.h index 67df1f1..1779e73 100644 --- a/kvm.h +++ b/kvm.h @@ -215,4 +215,5 @@ int kvm_set_ioeventfd_mmio(int fd, uint32_t adr, uint32_t val, bool assign, 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); #endif -- 1.7.10.1