[PATCH v4 0/6] virtio core DMA API conversion

Benjamin Herrenschmidt
Tue, 10 Nov 2015 05:28:36 -0000

On Mon, 2015-11-09 at 18:18 -0800, Andy Lutomirski
wrote:
>
> /* Qumranet donated their vendor ID for devices 0x1000 thru 0x10FF.
> */
> static const struct pci_device_id virtio_pci_id_table[] = {
> ??????? { PCI_DEVICE(0x1af4, PCI_ANY_ID) },
> ??????? { 0 }
> };
>
> Can we match on that range?

We can, but the problem remains, how do we differenciate an existing
device that does bypass vs. a newer one that needs the IOMMU and thus
doesn't have the new "bypass" property in the device-tree.

Cheers,
Ben.