Re: [PATCH v3 4/5] vhost-user-dev: Add cache BAR

2024-11-26 Thread Albert Esteve
On Tue, Sep 17, 2024 at 10:27 AM Stefan Hajnoczi wrote: > > On Thu, Sep 12, 2024 at 04:53:34PM +0200, Albert Esteve wrote: > > Add a cache BAR in the vhost-user-device > > into which files can be directly mapped. > > > > The number, shmid, and size of the VIRTIO Shared > > Memory subregions is ret

Re: [PATCH v3 4/5] vhost-user-dev: Add cache BAR

2024-11-25 Thread Albert Esteve
On Mon, Nov 25, 2024 at 5:16 PM Albert Esteve wrote: > > On Tue, Sep 17, 2024 at 10:27 AM Stefan Hajnoczi wrote: > > > > On Thu, Sep 12, 2024 at 04:53:34PM +0200, Albert Esteve wrote: > > > Add a cache BAR in the vhost-user-device > > > into which files can be directly mapped. > > > > > > The num

Re: [PATCH v3 4/5] vhost-user-dev: Add cache BAR

2024-11-25 Thread Albert Esteve
On Tue, Sep 17, 2024 at 10:27 AM Stefan Hajnoczi wrote: > > On Thu, Sep 12, 2024 at 04:53:34PM +0200, Albert Esteve wrote: > > Add a cache BAR in the vhost-user-device > > into which files can be directly mapped. > > > > The number, shmid, and size of the VIRTIO Shared > > Memory subregions is ret

Re: [PATCH v3 4/5] vhost-user-dev: Add cache BAR

2024-09-17 Thread Stefan Hajnoczi
On Tue, 17 Sept 2024 at 10:33, Stefan Hajnoczi wrote: > > On Thu, Sep 12, 2024 at 04:53:34PM +0200, Albert Esteve wrote: > > @@ -331,6 +333,37 @@ static void vub_device_realize(DeviceState *dev, Error > > **errp) > > do_vhost_user_cleanup(vdev, vub); > > } > > > > +ret = vub->vh

Re: [PATCH v3 4/5] vhost-user-dev: Add cache BAR

2024-09-17 Thread Stefan Hajnoczi
On Thu, Sep 12, 2024 at 04:53:34PM +0200, Albert Esteve wrote: > @@ -331,6 +333,37 @@ static void vub_device_realize(DeviceState *dev, Error > **errp) > do_vhost_user_cleanup(vdev, vub); > } > > +ret = vub->vhost_dev.vhost_ops->vhost_get_shmem_config(&vub->vhost_dev, > +

Re: [PATCH v3 4/5] vhost-user-dev: Add cache BAR

2024-09-17 Thread Stefan Hajnoczi
On Thu, Sep 12, 2024 at 04:53:34PM +0200, Albert Esteve wrote: > Add a cache BAR in the vhost-user-device > into which files can be directly mapped. > > The number, shmid, and size of the VIRTIO Shared > Memory subregions is retrieved through a get_shmem_config > message sent by the vhost-user-bas

[PATCH v3 4/5] vhost-user-dev: Add cache BAR

2024-09-12 Thread Albert Esteve
Add a cache BAR in the vhost-user-device into which files can be directly mapped. The number, shmid, and size of the VIRTIO Shared Memory subregions is retrieved through a get_shmem_config message sent by the vhost-user-base module on the realize step, after virtio_init(). By default, if VHOST_US