[dpdk-dev] Having troubles binding an SR-IOV VF to uio_pci_generic on Amazon instance
avi at scylladb.com
Thu Oct 1 12:23:52 CEST 2015
On 10/01/2015 01:14 PM, Michael S. Tsirkin wrote:
> On Thu, Oct 01, 2015 at 12:43:53PM +0300, Avi Kivity wrote:
>>> There were some tentative to get it for other (older) drivers, named
>>> 'bifurcated drivers', but it is stalled.
>> IIRC they still exposed the ring to userspace.
> How much would a ring write syscall cost? 1-2 microseconds, isn't it?
> Measureable, but it's not the end of the world.
Plus a page table walk per packet fragment (dpdk has the physical
address prepared in the mbuf IIRC). The 10Mpps+ users of dpdk should
comment on whether the performance hit is acceptable (my use case is
much more modest).
> ring read might be safe to allow.
> Should buy us enough time until hypervisors support IOMMU.
All the relevant drivers need to be converted to support ring
translation, and exposing the ring to userspace in the new API. It
shouldn't take more than 3-4 years.
Meanwhile, users of virtualized systems that need interrupt support
cannot use their machines, while non-virtualized users are free to DMA
wherever they like, in the name of security.
btw, an API like you describe already exists -- vhost. Of course the
virtio protocol is nowhere near fast enough, but at least it's an example.
More information about the dev