qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] virtio-scsi-pci iothread spins at 100%


From: Ed Swierk
Subject: Re: [Qemu-devel] virtio-scsi-pci iothread spins at 100%
Date: Wed, 8 Feb 2017 19:44:50 -0800

On Wed, Feb 8, 2017 at 6:52 PM, Fam Zheng <address@hidden> wrote:
> This means virtio-scsi event vq handler is returning true but actually no
> progress is made. Can you try the following patch to see if it's because a
> stalled cache of VQ index?
>
> diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c
> index 6365706..7f7ab57 100644
> --- a/hw/virtio/virtio.c
> +++ b/hw/virtio/virtio.c
> @@ -2126,7 +2126,7 @@ static bool virtio_queue_host_notifier_aio_poll(void 
> *opaque)
>      EventNotifier *n = opaque;
>      VirtQueue *vq = container_of(n, VirtQueue, host_notifier);
>
> -    if (virtio_queue_empty(vq)) {
> +    if (vring_avail_idx(vq) == vq->last_avail_idx) {
>          return false;
>      }

I tried this change but the behavior is the same, unfortunately.

--Ed



reply via email to

[Prev in Thread] Current Thread [Next in Thread]