[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 05/10] vdpa-dev: implement the realize interface
From: |
Stefano Garzarella |
Subject: |
Re: [PATCH v3 05/10] vdpa-dev: implement the realize interface |
Date: |
Tue, 29 Mar 2022 09:05:21 +0200 |
On Tue, Mar 29, 2022 at 7:16 AM Longpeng (Mike, Cloud Infrastructure
Service Product Dept.) <longpeng2@huawei.com> wrote:
> > On Sat, Mar 19, 2022 at 03:20:07PM +0800, Longpeng(Mike) wrote:
> > >From: Longpeng <longpeng2@huawei.com>
> > >
>
> [snap]
>
> > > static void vhost_vdpa_device_unrealize(DeviceState *dev)
> > >@@ -66,6 +197,7 @@ static void vhost_vdpa_device_set_status(VirtIODevice
> > >*vdev,
> > uint8_t status)
> > > static Property vhost_vdpa_device_properties[] = {
> > > DEFINE_PROP_STRING("vdpa-dev", VhostVdpaDevice, vdpa_dev),
> > > DEFINE_PROP_INT32("vdpa-dev-fd", VhostVdpaDevice, vdpa_dev_fd, -1),
> >
> > Other vhost devices use the `vhostfd` property, maybe we should use the
> > same name.
> >
> > If we go for this change, then maybe we also need to change `vdpa-dev`
> > to `vhostpath` or something like that
> >
>
> Make sense.
>
> I prefer to use 'vhostdev' for the file path, just like the usage in Netdev:
> -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-0,id=vhostvdpa1
>
Yep, I agree with 'vhostdev'.
Thanks,
Stefano
- [PATCH v3 00/10] add generic vDPA device support, Longpeng(Mike), 2022/03/19
- [PATCH v3 04/10] vdpa-dev: implement the instance_init/class_init interface, Longpeng(Mike), 2022/03/19
- [PATCH v3 02/10] update linux headers, Longpeng(Mike), 2022/03/19
- [PATCH v3 08/10] vdpa-dev: implement the get_features interface, Longpeng(Mike), 2022/03/19
- [PATCH v3 06/10] vdpa-dev: implement the unrealize interface, Longpeng(Mike), 2022/03/19
- [PATCH v3 03/10] vdpa: add the infrastructure of vdpa-dev, Longpeng(Mike), 2022/03/19
- [PATCH v3 10/10] vdpa-dev: mark the device as unmigratable, Longpeng(Mike), 2022/03/19
- [PATCH v3 07/10] vdpa-dev: implement the get_config/set_config interface, Longpeng(Mike), 2022/03/19
- [PATCH v3 09/10] vdpa-dev: implement the set_status interface, Longpeng(Mike), 2022/03/19
- Re: [PATCH v3 00/10] add generic vDPA device support, Stefano Garzarella, 2022/03/28