Jason Wang
2021-Jun-29 03:41 UTC
[PATCH linux-next v3 2/6] vdpa: Introduce query of device config layout
? 2021/6/29 ??6:39, Michael S. Tsirkin ??:> On Mon, Jun 28, 2021 at 01:03:20PM +0800, Jason Wang wrote: >> So I think we need solve them all, but netlink is probably the wrong layer, >> we need to solve them at virtio level and let netlink a transport for them >> virtio uAPI/ABI. > I'm not sure I follow. virtio defines VF to driver communication. > This is PF to hypervisor. virtio simply does not cover it ATM.Note that this is not PF to hypervisor but the uAPI from userspace (vDPA tool) to vDPA core. We had two choices. 1) tweak virtio uAPIs 2) invent virtio specific uAPI in netlink 1) seems better. Thanks>
Michael S. Tsirkin
2021-Jun-29 20:01 UTC
[PATCH linux-next v3 2/6] vdpa: Introduce query of device config layout
On Tue, Jun 29, 2021 at 11:41:54AM +0800, Jason Wang wrote:> > ? 2021/6/29 ??6:39, Michael S. Tsirkin ??: > > On Mon, Jun 28, 2021 at 01:03:20PM +0800, Jason Wang wrote: > > > So I think we need solve them all, but netlink is probably the wrong layer, > > > we need to solve them at virtio level and let netlink a transport for them > > > virtio uAPI/ABI. > > I'm not sure I follow. virtio defines VF to driver communication. > > This is PF to hypervisor. virtio simply does not cover it ATM. > > > Note that this is not PF to hypervisor but the uAPI from userspace (vDPA > tool) to vDPA core. > > We had two choices. > > 1) tweak virtio uAPIs > 2) invent virtio specific uAPI in netlink > > 1) seems better. > > Thanks >Well things like setting mac aren't virtio specific. What are the virtio specific things you have in mind?> >