[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [Question] Proper location for Linux error code (-EPROBE_DEFER) in Xen




On 01.08.19 17:34, Jan Beulich wrote:

Hi Jan

On 01.08.2019 16:31, Oleksandr wrote:
   This is needed for the upcoming V2 of the IPMMU driver (ARM) [1] which may 
request
   deferred probing (returns -EPROBE_DEFER) depending on what device will be 
probed the first
   (Root device must be registered before Cache devices. If not the case,
   driver will deny further Cache device probes until Root device is 
registered).

As we can't guarantee a fixed pre-defined order for the device nodes in DT, we 
need to be ready for the situation where devices being probed
in "any" order. So, framework (drivers/passthrough/arm/iommu.c) will be 
modified a bit to be able to handle -EPROBE_DEFER returning by driver.
I'm sure this can be had without introducing a new error code.

By reusing existing one (EAGAIN comes to mind)?



Jan

--
Regards,

Oleksandr Tyshchenko


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.