qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: question on virtio


From: Anthony Liguori
Subject: [Qemu-devel] Re: question on virtio
Date: Wed, 05 May 2010 14:40:15 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0pre Thunderbird/3.0

On 05/05/2010 06:09 AM, Michael S. Tsirkin wrote:
Hi!
I see this in virtio_ring.c:

         /* Put entry in available array (but don't update avail->idx *
           until they do sync). */

Why is it done this way?
It seems that updating the index straight away would be simpler, while
this might allow the host to specilatively look up the buffer and handle
it, without waiting for the kick.

It should be okay as long as you don't update idx for partial vectors.

Regards,

Anthony Liguori






reply via email to

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