>>> I will look into this. However, can we rely to have access to all >>> device resources through platform abstractions, for every type of >>> platform device >> >> The only resources we care about in vfio are mappable regions >> and irqs. So, yes I think we can rely on access to those >> resources. >> >>> It seems to me that platform devices that are not >>> backed by a specific description mechanism (such as device tree) may >>> include a lot of hard coded values etc in their drivers. >> >> If the platform device struct does not have reg/irq resources described >> then we can't expose them to user space with vfio. > > Which is my concern actually. If the struct does not describe reg/irq > resources, or even worse if it describes them partially, do we want to > let the user shoot himself on the foot? > > Granted this might happen with device tree too, but I find it much > more likely with generic platform devices. > > Maybe we should adopt a whitelist instead? Just realize I never replied to this query... If there are no IRQs in the platform device struct we should just return 0x0 for number of interrupts. If the information in the platform device struct is only partially complete, we should just return an error to the caller of the ioctl. Stuart -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html