From mboxrd@z Thu Jan 1 00:00:00 1970 From: Asias He Subject: [PATCH 5/5] kvm tools: Remove dead code virt_queue__trigger_irq() Date: Mon, 31 Oct 2011 22:39:42 +0800 Message-ID: <1320071982-21560-5-git-send-email-asias.hejun@gmail.com> References: <1320071982-21560-1-git-send-email-asias.hejun@gmail.com> Cc: Cyrill Gorcunov , Ingo Molnar , Sasha Levin , kvm@vger.kernel.org, Asias He To: Pekka Enberg Return-path: Received: from mail-iy0-f174.google.com ([209.85.210.174]:61867 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932466Ab1JaOlG (ORCPT ); Mon, 31 Oct 2011 10:41:06 -0400 Received: by mail-iy0-f174.google.com with SMTP id y12so7240414iab.19 for ; Mon, 31 Oct 2011 07:41:06 -0700 (PDT) In-Reply-To: <1320071982-21560-1-git-send-email-asias.hejun@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: This function is not used anymore. Instead, We are using virtio_pci__signal_vq() to trigger interrupt right now. Signed-off-by: Asias He --- tools/kvm/include/kvm/virtio.h | 3 --- tools/kvm/virtio/core.c | 12 ------------ 2 files changed, 0 insertions(+), 15 deletions(-) diff --git a/tools/kvm/include/kvm/virtio.h b/tools/kvm/include/kvm/virtio.h index 3442338..c6c380d 100644 --- a/tools/kvm/include/kvm/virtio.h +++ b/tools/kvm/include/kvm/virtio.h @@ -57,9 +57,6 @@ u16 virt_queue__get_iov(struct virt_queue *queue, struct iovec iov[], u16 *out, u16 virt_queue__get_inout_iov(struct kvm *kvm, struct virt_queue *queue, struct iovec in_iov[], struct iovec out_iov[], u16 *in, u16 *out); - -void virt_queue__trigger_irq(struct virt_queue *vq, int irq, u8 *isr, struct kvm *kvm); - int virtio__get_dev_specific_field(int offset, bool msix, bool features_hi, u32 *config_off); #endif /* KVM__VIRTIO_H */ diff --git a/tools/kvm/virtio/core.c b/tools/kvm/virtio/core.c index d7c132b..0466e07 100644 --- a/tools/kvm/virtio/core.c +++ b/tools/kvm/virtio/core.c @@ -89,18 +89,6 @@ u16 virt_queue__get_inout_iov(struct kvm *kvm, struct virt_queue *queue, return head; } - -void virt_queue__trigger_irq(struct virt_queue *vq, int irq, u8 *isr, struct kvm *kvm) -{ - if (vq->vring.avail->flags & VRING_AVAIL_F_NO_INTERRUPT) - return; - - if (*isr == VIRTIO_IRQ_LOW) { - *isr = VIRTIO_IRQ_HIGH; - kvm__irq_line(kvm, irq, VIRTIO_IRQ_HIGH); - } -} - int virtio__get_dev_specific_field(int offset, bool msix, bool features_hi, u32 *config_off) { if (msix) { -- 1.7.7.1