Re: [RFC PATCH V3 1/5] vhost: generalize adding used elem

2019-01-07 Thread Michael S. Tsirkin
On Mon, Jan 07, 2019 at 03:00:17PM +0800, Jason Wang wrote: > > On 2019/1/5 上午8:33, Sean Christopherson wrote: > > On Fri, Jan 04, 2019 at 04:29:34PM -0500, Michael S. Tsirkin wrote: > > > On Sat, Dec 29, 2018 at 08:46:52PM +0800, Jason Wang wrote: > > > > Use one generic vhost_copy_to_user()

Re: [RFC PATCH V3 1/5] vhost: generalize adding used elem

2019-01-06 Thread Jason Wang
On 2019/1/5 上午8:33, Sean Christopherson wrote: On Fri, Jan 04, 2019 at 04:29:34PM -0500, Michael S. Tsirkin wrote: On Sat, Dec 29, 2018 at 08:46:52PM +0800, Jason Wang wrote: Use one generic vhost_copy_to_user() instead of two dedicated accessor. This will simplify the conversion to fine

Re: [RFC PATCH V3 1/5] vhost: generalize adding used elem

2019-01-04 Thread Sean Christopherson
On Fri, Jan 04, 2019 at 04:29:34PM -0500, Michael S. Tsirkin wrote: > On Sat, Dec 29, 2018 at 08:46:52PM +0800, Jason Wang wrote: > > Use one generic vhost_copy_to_user() instead of two dedicated > > accessor. This will simplify the conversion to fine grain > > accessors. About 2% improvement of

Re: [RFC PATCH V3 1/5] vhost: generalize adding used elem

2019-01-04 Thread Michael S. Tsirkin
On Sat, Dec 29, 2018 at 08:46:52PM +0800, Jason Wang wrote: > Use one generic vhost_copy_to_user() instead of two dedicated > accessor. This will simplify the conversion to fine grain > accessors. About 2% improvement of PPS were seen during vitio-user > txonly test. > > Signed-off-by: Jason Wang

[RFC PATCH V3 1/5] vhost: generalize adding used elem

2018-12-29 Thread Jason Wang
Use one generic vhost_copy_to_user() instead of two dedicated accessor. This will simplify the conversion to fine grain accessors. About 2% improvement of PPS were seen during vitio-user txonly test. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 11 +-- 1 file changed, 1