Re: [PATCH RFC 04/12] vdpa: add vdpa simulator for block device

2020-11-18 Thread Stefano Garzarella
On Wed, Nov 18, 2020 at 11:23:55AM +, Stefan Hajnoczi wrote: On Tue, Nov 17, 2020 at 06:38:11PM +0100, Stefano Garzarella wrote: On Tue, Nov 17, 2020 at 04:43:42PM +, Stefan Hajnoczi wrote: > On Tue, Nov 17, 2020 at 03:16:20PM +0100, Stefano Garzarella wrote: > > On Tue, Nov 17, 2020 at

Re: [PATCH RFC 04/12] vdpa: add vdpa simulator for block device

2020-11-18 Thread Stefan Hajnoczi
On Tue, Nov 17, 2020 at 06:38:11PM +0100, Stefano Garzarella wrote: > On Tue, Nov 17, 2020 at 04:43:42PM +, Stefan Hajnoczi wrote: > > On Tue, Nov 17, 2020 at 03:16:20PM +0100, Stefano Garzarella wrote: > > > On Tue, Nov 17, 2020 at 11:11:21AM +, Stefan Hajnoczi wrote: > > > > On Fri, Nov 1

Re: [PATCH RFC 04/12] vdpa: add vdpa simulator for block device

2020-11-17 Thread Stefano Garzarella
On Tue, Nov 17, 2020 at 04:43:42PM +, Stefan Hajnoczi wrote: On Tue, Nov 17, 2020 at 03:16:20PM +0100, Stefano Garzarella wrote: On Tue, Nov 17, 2020 at 11:11:21AM +, Stefan Hajnoczi wrote: > On Fri, Nov 13, 2020 at 02:47:04PM +0100, Stefano Garzarella wrote: > > +static void vdpasim_blk

Re: [PATCH RFC 04/12] vdpa: add vdpa simulator for block device

2020-11-17 Thread Stefan Hajnoczi
On Tue, Nov 17, 2020 at 03:16:20PM +0100, Stefano Garzarella wrote: > On Tue, Nov 17, 2020 at 11:11:21AM +, Stefan Hajnoczi wrote: > > On Fri, Nov 13, 2020 at 02:47:04PM +0100, Stefano Garzarella wrote: > > > +static void vdpasim_blk_work(struct work_struct *work) > > > +{ > > > + struct vdpasi

Re: [PATCH RFC 04/12] vdpa: add vdpa simulator for block device

2020-11-17 Thread Stefano Garzarella
On Tue, Nov 17, 2020 at 11:11:21AM +, Stefan Hajnoczi wrote: On Fri, Nov 13, 2020 at 02:47:04PM +0100, Stefano Garzarella wrote: +static void vdpasim_blk_work(struct work_struct *work) +{ + struct vdpasim *vdpasim = container_of(work, struct vdpasim, work); + u8 status = VIRTIO_B

Re: [PATCH RFC 04/12] vdpa: add vdpa simulator for block device

2020-11-17 Thread Stefan Hajnoczi
On Fri, Nov 13, 2020 at 02:47:04PM +0100, Stefano Garzarella wrote: > +static void vdpasim_blk_work(struct work_struct *work) > +{ > + struct vdpasim *vdpasim = container_of(work, struct vdpasim, work); > + u8 status = VIRTIO_BLK_S_OK; > + int i; > + > + spin_lock(&vdpasim->lock); >

Re: [PATCH RFC 04/12] vdpa: add vdpa simulator for block device

2020-11-16 Thread Stefano Garzarella
On Mon, Nov 16, 2020 at 12:10:19PM +0800, Jason Wang wrote: On 2020/11/13 下午9:47, Stefano Garzarella wrote: From: Max Gurtovoy This will allow running vDPA for virtio block protocol. Signed-off-by: Max Gurtovoy [sgarzare: various cleanups/fixes] Signed-off-by: Stefano Garzarella --- v1: -

Re: [PATCH RFC 04/12] vdpa: add vdpa simulator for block device

2020-11-15 Thread Jason Wang
On 2020/11/13 下午9:47, Stefano Garzarella wrote: From: Max Gurtovoy This will allow running vDPA for virtio block protocol. Signed-off-by: Max Gurtovoy [sgarzare: various cleanups/fixes] Signed-off-by: Stefano Garzarella --- v1: - Removed unused headers - Used cpu_to_vdpasim*() to store con

[PATCH RFC 04/12] vdpa: add vdpa simulator for block device

2020-11-13 Thread Stefano Garzarella
From: Max Gurtovoy This will allow running vDPA for virtio block protocol. Signed-off-by: Max Gurtovoy [sgarzare: various cleanups/fixes] Signed-off-by: Stefano Garzarella --- v1: - Removed unused headers - Used cpu_to_vdpasim*() to store config fields - Replaced 'select VDPA_SIM' with 'depend