[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [PATCH 4/5] virtio-net: add support for VIRTIO_F_ADMIN_VQ
On Wed, Jan 19, 2022 at 5:26 PM Michael S. Tsirkin <mst@redhat.com> wrote: > > On Wed, Jan 19, 2022 at 12:16:47PM +0800, Jason Wang wrote: > > > We also need > > > - something like injecting cvq commands to control rx mode from the admin device > > > - page fault / dirty page handling > > > > > > these two seem to call for a vq. > > > > Right, but vq is not necessarily for PF if we had PASID. And with > > PASID we don't even need a dedicated new cvq. > > I don't think it's a good idea to mix transactions from > multiple PASIDs on the same vq. To be clear, I don't mean to let a single vq use multiple PASIDs. > > Attaching a PASID to a queue seems more reasonable. > cvq is under guest control, so yes I think a separate > vq is preferable. Sorry, I don't get here. E.g in the case of virtio-net, it's more than sufficient to assign a dedicated PASID to cvq, any reason for yet another one? > > What is true is that with subfunctions you would have > PASID per subfunction and then one subfunction for control. Well, it's possible, but it's also possible to have everything self contained in a single subfucntion. Then cvq can be assigned to a PASID that is used only for the hypervisor. > > I think a sketch of how things will work with scalable iov can't hurt as > part of this proposal. And, I'm not sure we should have so much > flexibility: if there's an interface that works for SRIOV and SIOV then > that seems preferable than having distinct transports for SRIOV and > SIOV. Some of my understanding of SR-IOV vs SIOV: 1) SR-IOV doesn't requires a transport, VF use PCI config space; But SIOV requires one 2) SR-IOV doesn't support dynamic on demand provisioning where SIOV can So I'm not sure how hard it is if we want to unify the management plane of the above two. Thanks > > > -- > MST >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]