This function is not used anymore. Instead, We are using virtio_pci__signal_vq() to trigger interrupt right now. Signed-off-by: Asias He <asias.hejun@xxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html