Hi Stefano,
On 19/03/2021 17:53, Stefano Stabellini wrote:
On Fri, 19 Mar 2021, Boris Ostrovsky wrote:
On 3/18/21 7:28 PM, Stefano Stabellini wrote:
So, I'll follow you suggestion, keep the x86 side named as it is today,
and provide a tiny wrapper so that we can still have an arch-neutral
xen_swiotlb_detect function (on x86 just calls pci_xen_swiotlb_detect.)
But now on x86 side we end up with a routine that noone calls. And
pci_xen_swiotlb_detect() becomes not __init and so it will have to stick around
after boot for no good reason. (You could have made it __ref btw).
I think we should leave x86 alone. And if there is a declaration in
include/xen/swiotlb-xen.h that's only relevant to ARM --- well, so be it. Or
perhaps you can create arch/arm/include/asm/xen/swiotlb-xen.h
Yeah I wanted to avoid creating arch/arm/include/asm/xen/swiotlb-xen.h
If the header is going to be useed by arch/arm and arch/arm64, then it
should be defined in include/xen/arm/ to avoid any packaging issue.
Cheers,
--
Julien Grall