Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-29 Thread Tiwei Bie
On Tue, Oct 29, 2019 at 06:48:27PM +0800, Jason Wang wrote: > On 2019/10/29 下午5:57, Tiwei Bie wrote: > > On Mon, Oct 28, 2019 at 11:50:49AM +0800, Jason Wang wrote: > >> On 2019/10/28 上午9:58, Tiwei Bie wrote: > >>> On Fri, Oct 25, 2019 at 08:16:26AM -0400, Michael S. Tsirkin wrote: > On Fri, O

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-29 Thread Jason Wang
On 2019/10/29 下午5:57, Tiwei Bie wrote: > On Mon, Oct 28, 2019 at 11:50:49AM +0800, Jason Wang wrote: >> On 2019/10/28 上午9:58, Tiwei Bie wrote: >>> On Fri, Oct 25, 2019 at 08:16:26AM -0400, Michael S. Tsirkin wrote: On Fri, Oct 25, 2019 at 05:54:55PM +0800, Jason Wang wrote: > On 2019/10/2

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-29 Thread Tiwei Bie
On Mon, Oct 28, 2019 at 11:50:49AM +0800, Jason Wang wrote: > On 2019/10/28 上午9:58, Tiwei Bie wrote: > > On Fri, Oct 25, 2019 at 08:16:26AM -0400, Michael S. Tsirkin wrote: > > > On Fri, Oct 25, 2019 at 05:54:55PM +0800, Jason Wang wrote: > > > > On 2019/10/24 下午6:42, Jason Wang wrote: > > > > > Ye

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-27 Thread Jason Wang
On 2019/10/28 上午9:58, Tiwei Bie wrote: On Fri, Oct 25, 2019 at 08:16:26AM -0400, Michael S. Tsirkin wrote: On Fri, Oct 25, 2019 at 05:54:55PM +0800, Jason Wang wrote: On 2019/10/24 下午6:42, Jason Wang wrote: Yes.   And we should try to avoid putting ctrl vq and Rx/Tx vqs in the same DMA sp

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-27 Thread Tiwei Bie
On Fri, Oct 25, 2019 at 08:16:26AM -0400, Michael S. Tsirkin wrote: > On Fri, Oct 25, 2019 at 05:54:55PM +0800, Jason Wang wrote: > > On 2019/10/24 下午6:42, Jason Wang wrote: > > > > > > Yes. > > > > > > > > > >   And we should try to avoid > > > > putting ctrl vq and Rx/Tx vqs in the same DMA sp

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-25 Thread Michael S. Tsirkin
On Fri, Oct 25, 2019 at 05:54:55PM +0800, Jason Wang wrote: > > On 2019/10/24 下午6:42, Jason Wang wrote: > > > > Yes. > > > > > > >   And we should try to avoid > > > putting ctrl vq and Rx/Tx vqs in the same DMA space to prevent > > > guests having the chance to bypass the host (e.g. QEMU) to >

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-25 Thread Jason Wang
On 2019/10/24 下午6:42, Jason Wang wrote: Yes.   And we should try to avoid putting ctrl vq and Rx/Tx vqs in the same DMA space to prevent guests having the chance to bypass the host (e.g. QEMU) to setup the backend accelerator directly. That's really good point.  So when "vhost" type is cr

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-24 Thread Jason Wang
On 2019/10/24 下午5:18, Tiwei Bie wrote: On Thu, Oct 24, 2019 at 04:32:42PM +0800, Jason Wang wrote: On 2019/10/24 下午4:03, Jason Wang wrote: On 2019/10/24 下午12:21, Tiwei Bie wrote: On Wed, Oct 23, 2019 at 06:29:21PM +0800, Jason Wang wrote: On 2019/10/23 下午6:11, Tiwei Bie wrote: On Wed, Oct 2

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-24 Thread Tiwei Bie
On Thu, Oct 24, 2019 at 04:32:42PM +0800, Jason Wang wrote: > On 2019/10/24 下午4:03, Jason Wang wrote: > > On 2019/10/24 下午12:21, Tiwei Bie wrote: > > > On Wed, Oct 23, 2019 at 06:29:21PM +0800, Jason Wang wrote: > > > > On 2019/10/23 下午6:11, Tiwei Bie wrote: > > > > > On Wed, Oct 23, 2019 at 03:25:

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-24 Thread Jason Wang
On 2019/10/24 下午4:03, Jason Wang wrote: On 2019/10/24 下午12:21, Tiwei Bie wrote: On Wed, Oct 23, 2019 at 06:29:21PM +0800, Jason Wang wrote: On 2019/10/23 下午6:11, Tiwei Bie wrote: On Wed, Oct 23, 2019 at 03:25:00PM +0800, Jason Wang wrote: On 2019/10/23 下午3:07, Tiwei Bie wrote: On Wed, Oct

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-24 Thread Jason Wang
On 2019/10/24 下午12:21, Tiwei Bie wrote: On Wed, Oct 23, 2019 at 06:29:21PM +0800, Jason Wang wrote: On 2019/10/23 下午6:11, Tiwei Bie wrote: On Wed, Oct 23, 2019 at 03:25:00PM +0800, Jason Wang wrote: On 2019/10/23 下午3:07, Tiwei Bie wrote: On Wed, Oct 23, 2019 at 01:46:23PM +0800, Jason Wang w

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-23 Thread Tiwei Bie
On Wed, Oct 23, 2019 at 06:29:21PM +0800, Jason Wang wrote: > On 2019/10/23 下午6:11, Tiwei Bie wrote: > > On Wed, Oct 23, 2019 at 03:25:00PM +0800, Jason Wang wrote: > > > On 2019/10/23 下午3:07, Tiwei Bie wrote: > > > > On Wed, Oct 23, 2019 at 01:46:23PM +0800, Jason Wang wrote: > > > > > On 2019/10/

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-23 Thread Jason Wang
On 2019/10/23 下午6:11, Tiwei Bie wrote: On Wed, Oct 23, 2019 at 03:25:00PM +0800, Jason Wang wrote: On 2019/10/23 下午3:07, Tiwei Bie wrote: On Wed, Oct 23, 2019 at 01:46:23PM +0800, Jason Wang wrote: On 2019/10/23 上午11:02, Tiwei Bie wrote: On Tue, Oct 22, 2019 at 09:30:16PM +0800, Jason Wang w

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-23 Thread Tiwei Bie
On Wed, Oct 23, 2019 at 03:25:00PM +0800, Jason Wang wrote: > On 2019/10/23 下午3:07, Tiwei Bie wrote: > > On Wed, Oct 23, 2019 at 01:46:23PM +0800, Jason Wang wrote: > > > On 2019/10/23 上午11:02, Tiwei Bie wrote: > > > > On Tue, Oct 22, 2019 at 09:30:16PM +0800, Jason Wang wrote: > > > > > On 2019/10

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-23 Thread Jason Wang
On 2019/10/23 下午3:07, Tiwei Bie wrote: On Wed, Oct 23, 2019 at 01:46:23PM +0800, Jason Wang wrote: On 2019/10/23 上午11:02, Tiwei Bie wrote: On Tue, Oct 22, 2019 at 09:30:16PM +0800, Jason Wang wrote: On 2019/10/22 下午5:52, Tiwei Bie wrote: This patch introduces a mdev based hardware vhost back

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-23 Thread Tiwei Bie
On Wed, Oct 23, 2019 at 01:46:23PM +0800, Jason Wang wrote: > On 2019/10/23 上午11:02, Tiwei Bie wrote: > > On Tue, Oct 22, 2019 at 09:30:16PM +0800, Jason Wang wrote: > > > On 2019/10/22 下午5:52, Tiwei Bie wrote: > > > > This patch introduces a mdev based hardware vhost backend. > > > > This backend

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-22 Thread Jason Wang
On 2019/10/23 上午11:02, Tiwei Bie wrote: On Tue, Oct 22, 2019 at 09:30:16PM +0800, Jason Wang wrote: On 2019/10/22 下午5:52, Tiwei Bie wrote: This patch introduces a mdev based hardware vhost backend. This backend is built on top of the same abstraction used in virtio-mdev and provides a generic

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-22 Thread Tiwei Bie
On Tue, Oct 22, 2019 at 09:30:16PM +0800, Jason Wang wrote: > On 2019/10/22 下午5:52, Tiwei Bie wrote: > > This patch introduces a mdev based hardware vhost backend. > > This backend is built on top of the same abstraction used > > in virtio-mdev and provides a generic vhost interface for > > userspa

Re: [PATCH v2] vhost: introduce mdev based hardware backend

2019-10-22 Thread Jason Wang
On 2019/10/22 下午5:52, Tiwei Bie wrote: This patch introduces a mdev based hardware vhost backend. This backend is built on top of the same abstraction used in virtio-mdev and provides a generic vhost interface for userspace to accelerate the virtio devices in guest. This backend is implemented

[PATCH v2] vhost: introduce mdev based hardware backend

2019-10-22 Thread Tiwei Bie
This patch introduces a mdev based hardware vhost backend. This backend is built on top of the same abstraction used in virtio-mdev and provides a generic vhost interface for userspace to accelerate the virtio devices in guest. This backend is implemented as a mdev device driver on top of the same