Re: [Qemu-devel] [PATCH for 2.8 11/11] vhost_net: device IOTLB support

2016-09-01 Thread Peter Xu
On Thu, Sep 01, 2016 at 03:36:40PM +0800, Jason Wang wrote: > The synchronization were done in kernel: > > - message dequeue and enqueue were protected by a spinlock > - the data path and control path (e.g IOTLB updating) were synchronized > through mutex Yes I didn't notice it's the vhost chr de

Re: [Qemu-devel] [PATCH for 2.8 11/11] vhost_net: device IOTLB support

2016-09-01 Thread Jason Wang
On 2016年09月01日 11:34, Peter Xu wrote: On Tue, Aug 30, 2016 at 11:06:59AM +0800, Jason Wang wrote: This patches implements Device IOTLB support for vhost kernel. This is done through: 1) switch to use dma helpers when map/unmap vrings from vhost codes 2) kernel support for Device IOTLB API: -

Re: [Qemu-devel] [PATCH for 2.8 11/11] vhost_net: device IOTLB support

2016-08-31 Thread Peter Xu
On Tue, Aug 30, 2016 at 11:06:59AM +0800, Jason Wang wrote: > This patches implements Device IOTLB support for vhost kernel. This is > done through: > > 1) switch to use dma helpers when map/unmap vrings from vhost codes > 2) kernel support for Device IOTLB API: > > - allow vhost-net to query the

[Qemu-devel] [PATCH for 2.8 11/11] vhost_net: device IOTLB support

2016-08-29 Thread Jason Wang
This patches implements Device IOTLB support for vhost kernel. This is done through: 1) switch to use dma helpers when map/unmap vrings from vhost codes 2) kernel support for Device IOTLB API: - allow vhost-net to query the IOMMU IOTLB entry through eventfd - enable the ability for qemu to update