From mboxrd@z Thu Jan 1 00:00:00 1970 From: Will Deacon Subject: Re: [RFC 4/5] vfio: amba: VFIO support for AMBA devices Date: Tue, 26 Aug 2014 11:50:27 +0100 Message-ID: <20140826105027.GH23445@arm.com> References: <1408698088-5349-1-git-send-email-a.motakis@virtualopensystems.com> <1408698088-5349-5-git-send-email-a.motakis@virtualopensystems.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: "stuart.yoder-KZfg59tc24xl57MIdRCFDg@public.gmane.org" , "kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "eric.auger-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org" , Marc Zyngier , "iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org" , "a.rigo-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org" , "tech-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org" , "kvmarm-FPEHb7Xf0XXUo1n7N8X6UoWGPAHP3yOg@public.gmane.org" , "christoffer.dall-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org" To: Antonios Motakis Return-path: Content-Disposition: inline In-Reply-To: <1408698088-5349-5-git-send-email-a.motakis-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: kvm.vger.kernel.org Hi Antonios, On Fri, Aug 22, 2014 at 10:01:27AM +0100, Antonios Motakis wrote: > Add support for discovering AMBA devices with VFIO and handle them > similarly to Linux platform devices. [...] > +static struct amba_id pl330_ids[] = { > + { 0, 0 }, > +}; > + > +MODULE_DEVICE_TABLE(amba, pl330_ids); > + > +static struct amba_driver vfio_amba_driver = { > + .probe = vfio_amba_probe, > + .remove = vfio_amba_remove, > + .id_table = pl330_ids, > + .drv = { > + .name = "vfio-amba", > + .owner = THIS_MODULE, > + }, > +}; I don't understand what you're doing with the IDs here. What's the point in the empty list? This also raises a larger question about whether or not it's safe to allow device passthrough of arbitrary platform devices with VFIO. In the absence of a bus/device standard like PCI, I really think this should be in opt-in decision, where certain platform drivers can declare that their device can be safely used with passthrough. Thoughts? Will