Re: [Qemu-devel] [PATCH 1/2] vhost-user-blk: introduce a new vhost-user-blk host device

2017-07-31 Thread Liu, Changpeng
> -Original Message- > From: Paolo Bonzini [mailto:pbonz...@redhat.com] > Sent: Monday, July 31, 2017 11:41 PM > To: Stefan Hajnoczi ; Liu, Changpeng > > Cc: qemu-devel@nongnu.org; fel...@nutanix.com; m...@redhat.com; Marc- > André Lureau

Re: [Qemu-devel] [PATCH 1/2] vhost-user-blk: introduce a new vhost-user-blk host device

2017-07-31 Thread Paolo Bonzini
On 31/07/2017 16:51, Stefan Hajnoczi wrote: > typedef enum VhostUserRequest { > ... > > /* Submitted by the vhost-user master when the guest writes to > * virtio config space and also after live migration on the > * destination host. > */ > VHOST_USER_SET_CONFIG, > >

Re: [Qemu-devel] [PATCH 1/2] vhost-user-blk: introduce a new vhost-user-blk host device

2017-07-31 Thread Stefan Hajnoczi
On Sat, Jul 29, 2017 at 03:21:16AM +, Liu, Changpeng wrote: > > > > -Original Message- > > From: Stefan Hajnoczi [mailto:stefa...@redhat.com] > > Sent: Friday, July 28, 2017 6:36 PM > > To: Liu, Changpeng > > Cc: qemu-devel@nongnu.org; pbonz...@redhat.com;

Re: [Qemu-devel] [PATCH 1/2] vhost-user-blk: introduce a new vhost-user-blk host device

2017-07-28 Thread Liu, Changpeng
> -Original Message- > From: Stefan Hajnoczi [mailto:stefa...@redhat.com] > Sent: Friday, July 28, 2017 6:36 PM > To: Liu, Changpeng > Cc: qemu-devel@nongnu.org; pbonz...@redhat.com; fel...@nutanix.com; > m...@redhat.com > Subject: Re: [PATCH 1/2]

Re: [Qemu-devel] [PATCH 1/2] vhost-user-blk: introduce a new vhost-user-blk host device

2017-07-28 Thread Stefan Hajnoczi
On Thu, Jul 27, 2017 at 10:08:49AM +, Liu, Changpeng wrote: > > -Original Message- > > From: Stefan Hajnoczi [mailto:stefa...@redhat.com] > > Sent: Thursday, July 27, 2017 5:49 PM > > To: Liu, Changpeng > > Cc: qemu-devel@nongnu.org; pbonz...@redhat.com;

Re: [Qemu-devel] [PATCH 1/2] vhost-user-blk: introduce a new vhost-user-blk host device

2017-07-27 Thread Liu, Changpeng
> -Original Message- > From: Stefan Hajnoczi [mailto:stefa...@redhat.com] > Sent: Thursday, July 27, 2017 5:49 PM > To: Liu, Changpeng > Cc: qemu-devel@nongnu.org; pbonz...@redhat.com; fel...@nutanix.com; > m...@redhat.com > Subject: Re: [PATCH 1/2]

Re: [Qemu-devel] [PATCH 1/2] vhost-user-blk: introduce a new vhost-user-blk host device

2017-07-27 Thread Stefan Hajnoczi
On Thu, Jul 27, 2017 at 12:29:45AM +, Liu, Changpeng wrote: > > > +.fields = (VMStateField[]) { > > > +VMSTATE_VIRTIO_DEVICE, > > > +VMSTATE_END_OF_LIST() > > > +}, > > > +}; > > > + > > > +static Property vhost_user_blk_properties[] = { > > > +

Re: [Qemu-devel] [PATCH 1/2] vhost-user-blk: introduce a new vhost-user-blk host device

2017-07-26 Thread Liu, Changpeng
> -Original Message- > From: Stefan Hajnoczi [mailto:stefa...@redhat.com] > Sent: Wednesday, July 26, 2017 6:35 PM > To: Liu, Changpeng > Cc: qemu-devel@nongnu.org; pbonz...@redhat.com; fel...@nutanix.com; > m...@redhat.com > Subject: Re: [PATCH 1/2]

Re: [Qemu-devel] [PATCH 1/2] vhost-user-blk: introduce a new vhost-user-blk host device

2017-07-26 Thread Stefan Hajnoczi
On Thu, Jul 27, 2017 at 10:00:50AM +0800, Changpeng Liu wrote: > +static void vhost_user_blk_set_config(VirtIODevice *vdev, const uint8_t > *config) > +{ > +VHostUserBlk *s = VHOST_USER_BLK(vdev); > +struct virtio_blk_config blkcfg; > + > +memcpy(, config, sizeof(blkcfg)); > + > +

[Qemu-devel] [PATCH 1/2] vhost-user-blk: introduce a new vhost-user-blk host device

2017-07-25 Thread Changpeng Liu
This commit introduces a vhost-user device for block, it uses a chardev to connect to the backend, Same with virito_blk, Guest OS still uses the virtio_blk frontend driver. To use it, start Qemu with command line like this: qemu-system-x86_64 \ -chardev