Do not inject IRQ when guest suppress it. This can reduce IRQ injection further and bumps host to guest bandwitdh to 6178.78 Mbps(cpu 63.96%). Signed-off-by: Asias He <asias.hejun@xxxxxxxxx> --- tools/kvm/virtio/core.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/tools/kvm/virtio/core.c b/tools/kvm/virtio/core.c index 0734984..2b3503d 100644 --- a/tools/kvm/virtio/core.c +++ b/tools/kvm/virtio/core.c @@ -60,6 +60,9 @@ u16 virt_queue__get_iov(struct virt_queue *queue, struct iovec iov[], u16 *out, 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); -- 1.7.4.4 -- 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