Re: [PATCH net-next 1/3] vhost: generalize adding used elem

2018-12-13 Thread Jason Wang
On 2018/12/14 上午3:41, Michael S. Tsirkin wrote: On Thu, Dec 13, 2018 at 06:10:20PM +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. Signed-off-by: Jason Wang The reason we did it like

Re: [PATCH net-next 1/3] vhost: generalize adding used elem

2018-12-13 Thread Michael S. Tsirkin
On Thu, Dec 13, 2018 at 06:10:20PM +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. > > Signed-off-by: Jason Wang The reason we did it like this is because it was faster. Want to try b

[PATCH net-next 1/3] vhost: generalize adding used elem

2018-12-13 Thread Jason Wang
Use one generic vhost_copy_to_user() instead of two dedicated accessor. This will simplify the conversion to fine grain accessors. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/vhost/vhost.c b/drivers/v