Re: [PATCH RFC v1 0/2] vhost: ring format independence

2019-10-12 Thread Michael S. Tsirkin
On Sat, Oct 12, 2019 at 03:31:50PM +0800, Jason Wang wrote: > > On 2019/10/11 下午9:45, Michael S. Tsirkin wrote: > > So the idea is as follows: we convert descriptors to an > > independent format first, and process that converting to > > iov later. > > > > The point is that we have a tight loop th

Re: [PATCH RFC v1 0/2] vhost: ring format independence

2019-10-12 Thread Michael S. Tsirkin
On Sat, Oct 12, 2019 at 04:15:42PM +0800, Jason Wang wrote: > > On 2019/10/11 下午9:45, Michael S. Tsirkin wrote: > > So the idea is as follows: we convert descriptors to an > > independent format first, and process that converting to > > iov later. > > > > The point is that we have a tight loop th

Re: [PATCH RFC v1 0/2] vhost: ring format independence

2019-10-12 Thread Jason Wang
On 2019/10/11 下午9:45, Michael S. Tsirkin wrote: So the idea is as follows: we convert descriptors to an independent format first, and process that converting to iov later. The point is that we have a tight loop that fetches descriptors, which is good for cache utilization. This will also allow

Re: [PATCH RFC v1 0/2] vhost: ring format independence

2019-10-12 Thread Jason Wang
On 2019/10/11 下午9:45, Michael S. Tsirkin wrote: So the idea is as follows: we convert descriptors to an independent format first, and process that converting to iov later. The point is that we have a tight loop that fetches descriptors, which is good for cache utilization. This will also allow

[PATCH RFC v1 0/2] vhost: ring format independence

2019-10-11 Thread Michael S. Tsirkin
So the idea is as follows: we convert descriptors to an independent format first, and process that converting to iov later. The point is that we have a tight loop that fetches descriptors, which is good for cache utilization. This will also allow all kind of batching tricks - e.g. it seems possibl