Re: [RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-25 Thread Jason Wang
On Wed, Oct 20, 2021 at 7:57 PM Eugenio Perez Martin wrote: > > On Wed, Oct 20, 2021 at 11:03 AM Jason Wang wrote: > > > > On Wed, Oct 20, 2021 at 2:52 PM Eugenio Perez Martin > > wrote: > > > > > > On Wed, Oct 20, 2021 at 4:07 AM Jason Wang wrote: > > > > > > > > On Wed, Oct 20, 2021 at 10:02

Re: [RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-20 Thread Jason Wang
On Wed, Oct 20, 2021 at 7:57 PM Eugenio Perez Martin wrote: > > On Wed, Oct 20, 2021 at 11:03 AM Jason Wang wrote: > > > > On Wed, Oct 20, 2021 at 2:52 PM Eugenio Perez Martin > > wrote: > > > > > > On Wed, Oct 20, 2021 at 4:07 AM Jason Wang wrote: > > > > > > > > On Wed, Oct 20, 2021 at 10:02

Re: [RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-20 Thread Eugenio Perez Martin
On Wed, Oct 20, 2021 at 11:03 AM Jason Wang wrote: > > On Wed, Oct 20, 2021 at 2:52 PM Eugenio Perez Martin > wrote: > > > > On Wed, Oct 20, 2021 at 4:07 AM Jason Wang wrote: > > > > > > On Wed, Oct 20, 2021 at 10:02 AM Jason Wang wrote: > > > > > > > > On Tue, Oct 19, 2021 at 6:29 PM Eugenio

Re: [RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-20 Thread Jason Wang
On Wed, Oct 20, 2021 at 2:52 PM Eugenio Perez Martin wrote: > > On Wed, Oct 20, 2021 at 4:07 AM Jason Wang wrote: > > > > On Wed, Oct 20, 2021 at 10:02 AM Jason Wang wrote: > > > > > > On Tue, Oct 19, 2021 at 6:29 PM Eugenio Perez Martin > > > wrote: > > > > > > > > On Tue, Oct 19, 2021 at

Re: [RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-20 Thread Eugenio Perez Martin
On Wed, Oct 20, 2021 at 4:07 AM Jason Wang wrote: > > On Wed, Oct 20, 2021 at 10:02 AM Jason Wang wrote: > > > > On Tue, Oct 19, 2021 at 6:29 PM Eugenio Perez Martin > > wrote: > > > > > > On Tue, Oct 19, 2021 at 11:25 AM Jason Wang wrote: > > > > > > > > > > > > 在 2021/10/1 下午3:06, Eugenio

Re: [RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-19 Thread Jason Wang
On Wed, Oct 20, 2021 at 10:02 AM Jason Wang wrote: > > On Tue, Oct 19, 2021 at 6:29 PM Eugenio Perez Martin > wrote: > > > > On Tue, Oct 19, 2021 at 11:25 AM Jason Wang wrote: > > > > > > > > > 在 2021/10/1 下午3:06, Eugenio Pérez 写道: > > > > Use translations added in VhostIOVATree in SVQ. > > > >

Re: [RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-19 Thread Jason Wang
On Tue, Oct 19, 2021 at 6:29 PM Eugenio Perez Martin wrote: > > On Tue, Oct 19, 2021 at 11:25 AM Jason Wang wrote: > > > > > > 在 2021/10/1 下午3:06, Eugenio Pérez 写道: > > > Use translations added in VhostIOVATree in SVQ. > > > > > > Now every element needs to store the previous address also, so

Re: [RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-19 Thread Eugenio Perez Martin
On Tue, Oct 19, 2021 at 11:25 AM Jason Wang wrote: > > > 在 2021/10/1 下午3:06, Eugenio Pérez 写道: > > Use translations added in VhostIOVATree in SVQ. > > > > Now every element needs to store the previous address also, so VirtQueue > > can consume the elements properly. This adds a little overhead

Re: [RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-19 Thread Jason Wang
在 2021/10/1 下午3:06, Eugenio Pérez 写道: Use translations added in VhostIOVATree in SVQ. Now every element needs to store the previous address also, so VirtQueue can consume the elements properly. This adds a little overhead per VQ element, having to allocate more memory to stash them. As a

Re: [RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-15 Thread Eugenio Perez Martin
On Fri, Oct 15, 2021 at 10:20 AM Eugenio Perez Martin wrote: > > On Fri, Oct 15, 2021 at 9:37 AM Jason Wang wrote: > > > > On Fri, Oct 15, 2021 at 3:28 PM Eugenio Perez Martin > > wrote: > > > > > > On Wed, Oct 13, 2021 at 7:34 AM Jason Wang wrote: > > > > > > > > > > > > 在 2021/10/1 下午3:06,

Re: [RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-15 Thread Eugenio Perez Martin
On Fri, Oct 15, 2021 at 9:37 AM Jason Wang wrote: > > On Fri, Oct 15, 2021 at 3:28 PM Eugenio Perez Martin > wrote: > > > > On Wed, Oct 13, 2021 at 7:34 AM Jason Wang wrote: > > > > > > > > > 在 2021/10/1 下午3:06, Eugenio Pérez 写道: > > > > Use translations added in VhostIOVATree in SVQ. > > > > >

Re: [RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-15 Thread Jason Wang
On Fri, Oct 15, 2021 at 4:21 PM Eugenio Perez Martin wrote: > > On Fri, Oct 15, 2021 at 9:37 AM Jason Wang wrote: > > > > On Fri, Oct 15, 2021 at 3:28 PM Eugenio Perez Martin > > wrote: > > > > > > On Wed, Oct 13, 2021 at 7:34 AM Jason Wang wrote: > > > > > > > > > > > > 在 2021/10/1 下午3:06,

Re: [RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-15 Thread Jason Wang
On Fri, Oct 15, 2021 at 3:28 PM Eugenio Perez Martin wrote: > > On Wed, Oct 13, 2021 at 7:34 AM Jason Wang wrote: > > > > > > 在 2021/10/1 下午3:06, Eugenio Pérez 写道: > > > Use translations added in VhostIOVATree in SVQ. > > > > > > Now every element needs to store the previous address also, so

Re: [RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-15 Thread Eugenio Perez Martin
On Wed, Oct 13, 2021 at 7:34 AM Jason Wang wrote: > > > 在 2021/10/1 下午3:06, Eugenio Pérez 写道: > > Use translations added in VhostIOVATree in SVQ. > > > > Now every element needs to store the previous address also, so VirtQueue > > can consume the elements properly. This adds a little overhead per

Re: [RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-12 Thread Jason Wang
在 2021/10/1 下午3:06, Eugenio Pérez 写道: Use translations added in VhostIOVATree in SVQ. Now every element needs to store the previous address also, so VirtQueue can consume the elements properly. This adds a little overhead per VQ element, having to allocate more memory to stash them. As a

[RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-01 Thread Eugenio Pérez
Use translations added in VhostIOVATree in SVQ. Now every element needs to store the previous address also, so VirtQueue can consume the elements properly. This adds a little overhead per VQ element, having to allocate more memory to stash them. As a possible optimization, this allocation could