|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 1/3] xen/arm: io: Distinguish unhandled IO from aborted one
Hi Stefano, On 30/01/18 19:09, Stefano Stabellini wrote: On Tue, 30 Jan 2018, Julien Grall wrote: Actually, I have said something completely wrong yesterday. Must have been too tired :/. At the time you call try_handle_mmio, you still don't know whether the fault was because of accessing an emulated MMIO region. You will only be sure when find_mmio_handler() has returned a non-NULL pointer (see handle_mmio()). So returning IO_UNHANDLED here is correct as you want to try another method to handle the fault. However, it also means that even bad access to emulated region will result to fallback on another method. While this should not be issue, I don't think this is future proof (I am mostly worry on the ACPI case where MMIO are mapped on-demand). So I will send a patch to fold try_handle_mmio() into handle_mmio(). On a side note, it looks like the check dabt.s1ptw is unnecessary because a stage 2 abort on stage 1 translation table lookup will not return a valid instruction syndrome (see B3-1433 in DDI 0406C.c and D10-2460 in DDI 0487C.a).in that case, go ahead and remove it as part of this patch, mention it in the commit message I will do that in a patch that fold try_handle_mmio() in handle_mmio(). Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |