qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] VFIO and scheduled SR-IOV cards
@ 2013-06-03 16:33 Benoît Canet
  2013-06-03 18:02 ` Alex Williamson
  0 siblings, 1 reply; 8+ messages in thread
From: Benoît Canet @ 2013-06-03 16:33 UTC (permalink / raw)
  To: iommu, qemu-devel, alex.williamson


Hello,

I plan to write a PF driver for an SR-IOV card and make the VFs work with QEMU's
VFIO passthrough so I am asking the following design question before trying to
write and push code.

After SR-IOV being enabled on this hardware only one VF function can be active
at a given time.

The PF host kernel driver is acting as a scheduler.
It switch every few milliseconds which VF is the current active function while
disabling the others VFs.

One consequence of how the hardware works is that the MMR regions of the
switched off VFs must be unmapped and their io access should block until the VF
is switched on again.

Each IOMMU map/unmap should be done in less than 100ns.

As the kernel iommu module is being called by the VFIO driver the PF driver
cannot interface with it.

Currently the only interface of the VFIO code is for the userland QEMU process
and I fear that notifying QEMU that it should do the unmap/block would take more
than 100ns.

Also blocking the IO access in QEMU under the BQL would freeze QEMU.

Do you have and idea on how to write this required map and block/unmap feature ?

Best regards

Benoît Canet

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-07-28 15:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-03 16:33 [Qemu-devel] VFIO and scheduled SR-IOV cards Benoît Canet
2013-06-03 18:02 ` Alex Williamson
2013-06-03 18:34   ` Don Dutile
2013-06-03 18:57     ` Alex Williamson
2013-06-04 15:50       ` Benoît Canet
2013-06-04 18:31         ` Alex Williamson
2013-07-10 10:23         ` Michael S. Tsirkin
2013-07-28 15:17           ` Benoît Canet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).