It does seem a bit more modular, but it's certainly not a big deal.Yes, but any benefit from doing this?So I have some questions:One benefit is that we can avoid doing vhost ioctls on
1) Compared to method 2, what's the advantage of creating a new vhost char
device? I guess it's for keep the API compatibility?
VFIO device fd.
Ok.2) For method 2, is there any easy way for user/admin to distinguish e.gI think device-api could be a choice.
ordinary vfio-mdev for vhost from ordinary vfio-mdev?
I saw you introduceThe ops matching helper is just to check whether a given
ops matching helper but it's not friendly to management.
vfio-device is based on a mdev device.
3) A drawback of 1) and 2) is that it must follow vfio_device_ops thatAs the above draft shows, this requires introducing a new
assumes the parameter comes from userspace, it prevents support kernel
virtio drivers.
4) So comes the idea of method 3, since it register a new vhost-mdev driver,
we can use device specific ops instead of VFIO ones, then we can have a
common API between vDPA parent and vhost-mdev/virtio-mdev drivers.
VFIO device driver. I think Alex's opinion matters here.
Yes, it is.
Thanks