Re: [PATCH net-next V2 6/8] vhost: packed ring support

2018-10-17 Thread Jason Wang
On 2018/10/15 下午6:25, Michael S. Tsirkin wrote: On Mon, Oct 15, 2018 at 10:51:06AM +0800, Jason Wang wrote: On 2018年10月15日 10:43, Michael S. Tsirkin wrote: On Mon, Oct 15, 2018 at 10:22:33AM +0800, Jason Wang wrote: On 2018年10月13日 01:23, Michael S. Tsirkin wrote: On Fri, Oct 12, 2018 at

Re: [PATCH net-next V2 6/8] vhost: packed ring support

2018-10-17 Thread Jason Wang
On 2018/10/16 下午9:58, Maxime Coquelin wrote: On 10/15/2018 04:22 AM, Jason Wang wrote: On 2018年10月13日 01:23, Michael S. Tsirkin wrote: On Fri, Oct 12, 2018 at 10:32:44PM +0800, Tiwei Bie wrote: On Mon, Jul 16, 2018 at 11:28:09AM +0800, Jason Wang wrote: [...] @@ -1367,10 +1397,48 @@ long

Re: [PATCH net-next V2 6/8] vhost: packed ring support

2018-10-15 Thread Michael S. Tsirkin
On Mon, Oct 15, 2018 at 10:51:06AM +0800, Jason Wang wrote: > > > On 2018年10月15日 10:43, Michael S. Tsirkin wrote: > > On Mon, Oct 15, 2018 at 10:22:33AM +0800, Jason Wang wrote: > > > > > > On 2018年10月13日 01:23, Michael S. Tsirkin wrote: > > > > On Fri, Oct 12, 2018 at 10:32:44PM +0800, Tiwei

Re: [PATCH net-next V2 6/8] vhost: packed ring support

2018-10-14 Thread Jason Wang
On 2018年10月15日 10:43, Michael S. Tsirkin wrote: On Mon, Oct 15, 2018 at 10:22:33AM +0800, Jason Wang wrote: On 2018年10月13日 01:23, Michael S. Tsirkin wrote: On Fri, Oct 12, 2018 at 10:32:44PM +0800, Tiwei Bie wrote: On Mon, Jul 16, 2018 at 11:28:09AM +0800, Jason Wang wrote: [...] @@

Re: [PATCH net-next V2 6/8] vhost: packed ring support

2018-10-14 Thread Michael S. Tsirkin
On Mon, Oct 15, 2018 at 10:22:33AM +0800, Jason Wang wrote: > > > On 2018年10月13日 01:23, Michael S. Tsirkin wrote: > > On Fri, Oct 12, 2018 at 10:32:44PM +0800, Tiwei Bie wrote: > > > On Mon, Jul 16, 2018 at 11:28:09AM +0800, Jason Wang wrote: > > > [...] > > > > @@ -1367,10 +1397,48 @@ long

Re: [PATCH net-next V2 6/8] vhost: packed ring support

2018-10-14 Thread Jason Wang
On 2018年10月13日 01:23, Michael S. Tsirkin wrote: On Fri, Oct 12, 2018 at 10:32:44PM +0800, Tiwei Bie wrote: On Mon, Jul 16, 2018 at 11:28:09AM +0800, Jason Wang wrote: [...] @@ -1367,10 +1397,48 @@ long vhost_vring_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *arg

Re: [PATCH net-next V2 6/8] vhost: packed ring support

2018-10-12 Thread Michael S. Tsirkin
On Fri, Oct 12, 2018 at 10:32:44PM +0800, Tiwei Bie wrote: > On Mon, Jul 16, 2018 at 11:28:09AM +0800, Jason Wang wrote: > [...] > > @@ -1367,10 +1397,48 @@ long vhost_vring_ioctl(struct vhost_dev *d, > > unsigned int ioctl, void __user *arg > > vq->last_avail_idx = s.num; > >

[PATCH net-next V2 6/8] vhost: packed ring support

2018-07-15 Thread Jason Wang
This patch introduces basic support for packed ring. The idea behinds packed ring is to use a single descriptor ring instead of three different rings (avail, used and descriptor). This could help to reduce the cache contention and PCI transactions. So it was designed to help for the performance