Re: A question about vring operation

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

 



On Thu, Aug 27, 2015 at 01:18:47AM +0000, Wang, Wei W wrote:
> Hi all,
> 
>  
> 
> I have a question about the vring_avail:
> 
> It only includes an idx (equivalent to the ring tail), which is used by the
> frontend (virtio_net) to fill bufs. The backend (e.g. vhost_net) maintains the
> ring head (last_avail_idx) by itself. The frontend checks if the ring is full
> or empty via a counter (vq->num_free).
> 
> My question is why can’t we include the ring head in the  vring_avail struct,
> so that the vq->num_free is not needed, and the backend can directly use it
> without maintaining its own copy?
> 
>  
> 
> Thanks,
> 
> Wei
> 
>  
> 

I'm not sure I understand your proposal, and what it would accomplish. Write a patch,
that'll make it easier to discuss.
Also copy all relevant mailing lists, not just kvm.


--
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



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux