Re: Outline for VHOST_USER_PROTOCOL_F_VDPA

2020-10-11 Thread Jason Wang
On 2020/9/30 下午4:07, Michael S. Tsirkin wrote: On Tue, Sep 29, 2020 at 07:38:24PM +0100, Stefan Hajnoczi wrote: On Tue, Sep 29, 2020 at 06:04:34AM -0400, Michael S. Tsirkin wrote: On Tue, Sep 29, 2020 at 09:57:51AM +0100, Stefan Hajnoczi wrote: On Tue, Sep 29, 2020 at 02:09:55AM -0400,

Re: Outline for VHOST_USER_PROTOCOL_F_VDPA

2020-10-11 Thread Jason Wang
On 2020/9/28 下午11:32, Stefan Hajnoczi wrote: On Mon, Sep 28, 2020 at 03:21:56PM +0400, Marc-André Lureau wrote: On Mon, Sep 28, 2020 at 1:25 PM Stefan Hajnoczi Where this converges with multi-process QEMU At this point QEMU can run ad-hoc

Re: Outline for VHOST_USER_PROTOCOL_F_VDPA

2020-10-01 Thread Stefan Hajnoczi
On Thu, Oct 01, 2020 at 09:28:37AM +0200, Gerd Hoffmann wrote: > Hi, > > > > Architecturally, I think we can have 3 processes: > > > > > > VMM -- guest device emulation -- host backend > > > > > > to me this looks like increasing our defence in depth strength, > > > as opposed to just

Re: Outline for VHOST_USER_PROTOCOL_F_VDPA

2020-10-01 Thread Gerd Hoffmann
Hi, > > Architecturally, I think we can have 3 processes: > > > > VMM -- guest device emulation -- host backend > > > > to me this looks like increasing our defence in depth strength, > > as opposed to just shifting things around ... > > Cool idea. Isn't that exactly what we can do once the

Re: Outline for VHOST_USER_PROTOCOL_F_VDPA

2020-09-30 Thread Michael S. Tsirkin
On Wed, Sep 30, 2020 at 03:57:52PM +0100, Stefan Hajnoczi wrote: > IMO "Inflight I/O tracking" is best placed into libvhost-user instead of > the vhost-user protocol. Oh I agree qemu does nothing with it. The reason we have it defined in the spec is to facilitate compatibility across backends. I

Re: Outline for VHOST_USER_PROTOCOL_F_VDPA

2020-09-30 Thread Michael S. Tsirkin
On Wed, Sep 30, 2020 at 03:57:52PM +0100, Stefan Hajnoczi wrote: > > Architecturally, I think we can have 3 processes: > > > > > > VMM -- guest device emulation -- host backend > > > > > > to me this looks like increasing our defence in depth strength, > > as opposed to just shifting things

Re: Outline for VHOST_USER_PROTOCOL_F_VDPA

2020-09-30 Thread Stefan Hajnoczi
On Wed, Sep 30, 2020 at 04:07:59AM -0400, Michael S. Tsirkin wrote: > On Tue, Sep 29, 2020 at 07:38:24PM +0100, Stefan Hajnoczi wrote: > > On Tue, Sep 29, 2020 at 06:04:34AM -0400, Michael S. Tsirkin wrote: > > > On Tue, Sep 29, 2020 at 09:57:51AM +0100, Stefan Hajnoczi wrote: > > > > On Tue, Sep

Re: Outline for VHOST_USER_PROTOCOL_F_VDPA

2020-09-30 Thread Michael S. Tsirkin
On Tue, Sep 29, 2020 at 07:38:24PM +0100, Stefan Hajnoczi wrote: > On Tue, Sep 29, 2020 at 06:04:34AM -0400, Michael S. Tsirkin wrote: > > On Tue, Sep 29, 2020 at 09:57:51AM +0100, Stefan Hajnoczi wrote: > > > On Tue, Sep 29, 2020 at 02:09:55AM -0400, Michael S. Tsirkin wrote: > > > > On Mon, Sep

Re: Outline for VHOST_USER_PROTOCOL_F_VDPA

2020-09-29 Thread Stefan Hajnoczi
On Tue, Sep 29, 2020 at 06:04:34AM -0400, Michael S. Tsirkin wrote: > On Tue, Sep 29, 2020 at 09:57:51AM +0100, Stefan Hajnoczi wrote: > > On Tue, Sep 29, 2020 at 02:09:55AM -0400, Michael S. Tsirkin wrote: > > > On Mon, Sep 28, 2020 at 10:25:37AM +0100, Stefan Hajnoczi wrote: > > > > Why extend

Re: Outline for VHOST_USER_PROTOCOL_F_VDPA

2020-09-29 Thread Michael S. Tsirkin
On Tue, Sep 29, 2020 at 09:57:51AM +0100, Stefan Hajnoczi wrote: > On Tue, Sep 29, 2020 at 02:09:55AM -0400, Michael S. Tsirkin wrote: > > On Mon, Sep 28, 2020 at 10:25:37AM +0100, Stefan Hajnoczi wrote: > > > Why extend vhost-user with vDPA? > > > > > > Reusing

Re: Outline for VHOST_USER_PROTOCOL_F_VDPA

2020-09-29 Thread Stefan Hajnoczi
On Tue, Sep 29, 2020 at 02:09:55AM -0400, Michael S. Tsirkin wrote: > On Mon, Sep 28, 2020 at 10:25:37AM +0100, Stefan Hajnoczi wrote: > > Why extend vhost-user with vDPA? > > > > Reusing VIRTIO emulation code for vhost-user backends > >

Re: Outline for VHOST_USER_PROTOCOL_F_VDPA

2020-09-29 Thread Michael S. Tsirkin
Thanks for the post! I have one comment: On Mon, Sep 28, 2020 at 10:25:37AM +0100, Stefan Hajnoczi wrote: > Why extend vhost-user with vDPA? > > Reusing VIRTIO emulation code for vhost-user backends > - > It is a

Re: Outline for VHOST_USER_PROTOCOL_F_VDPA

2020-09-28 Thread Stefan Hajnoczi
On Mon, Sep 28, 2020 at 03:21:56PM +0400, Marc-André Lureau wrote: > On Mon, Sep 28, 2020 at 1:25 PM Stefan Hajnoczi > Where this converges with multi-process QEMU > > > > At this point QEMU can run ad-hoc vhost-user backends using existing > > VIRTIO

Re: Outline for VHOST_USER_PROTOCOL_F_VDPA

2020-09-28 Thread Marc-André Lureau
Hi On Mon, Sep 28, 2020 at 1:25 PM Stefan Hajnoczi Where this converges with multi-process QEMU > > At this point QEMU can run ad-hoc vhost-user backends using existing > VIRTIO device models. It is possible to go further by creating a > qemu-dev

Outline for VHOST_USER_PROTOCOL_F_VDPA

2020-09-28 Thread Stefan Hajnoczi
Hi, Thanks for the positive responses to the initial discussion about introducing VHOST_USER_PROTOCOL_F_VDPA to use vDPA semantics and bring the full VIRTIO device model to vhost-user: https://lists.gnu.org/archive/html/qemu-devel/2020-08/msg05181.html Below is an inlined version of the more

Re: VHOST_USER_PROTOCOL_F_VDPA

2020-09-11 Thread Stefan Hajnoczi
On Thu, Sep 10, 2020 at 10:55:00AM +0200, Maxime Coquelin wrote: > I understand the need and like the idea. If no one plans to work on this within the next 6 months it could be an internship project since the Outreachy December-March round is coming up. The time requirement is typically ~5 hours

Re: VHOST_USER_PROTOCOL_F_VDPA

2020-09-10 Thread Maxime Coquelin
l. > > A vdpa-user protocol (or vhost-user 2.0) would replace the current mess > with a full VIRTIO device model. Both VMMs and device backends would > require changes to support this, but it would be a cleaner path forward > for the vhost-user protocol. > > One way of doing this

Re: VHOST_USER_PROTOCOL_F_VDPA

2020-09-02 Thread Jason Wang
to support this, but it would be a cleaner path forward for the vhost-user protocol. One way of doing this would be a new VHOST_USER_PROTOCOL_F_VDPA feature bit that indicates all the currently existing Linux vDPA ioctl messages are available. Legacy vhost-user messages with overlapping functionality must

VHOST_USER_PROTOCOL_F_VDPA

2020-08-21 Thread Stefan Hajnoczi
for the vhost-user protocol. One way of doing this would be a new VHOST_USER_PROTOCOL_F_VDPA feature bit that indicates all the currently existing Linux vDPA ioctl messages are available. Legacy vhost-user messages with overlapping functionality must not be used when this bit is set. Most