|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC 1/2] arm, smmu: add support for iommu_fwspec functions
Hi Brian, On 10/01/2020 01:26, Brian Woods wrote: I guess this because the masters are registered during the initialization of the SMMU. Could we instead look at registering them from the add_device callback? I understand this would mean to go through all the SMMU and require a bit more work. But I think it will help longer term as the workflow for registering a master would be similar whether legacy or generic bindings are used. @Stefano any opinions? xen/drivers/passthrough/arm/smmu.c | 74 ++++++++++++++++++++++------------- xen/drivers/passthrough/device_tree.c | 3 ++ > 2 files changed, 49 insertions(+), 28 deletions(-) diff --git a/xen/drivers/passthrough/arm/smmu.c b/xen/drivers/passthrough/arm/smmu.c index 94662a8..c5db5be 100644 --- a/xen/drivers/passthrough/arm/smmu.c +++ b/xen/drivers/passthrough/arm/smmu.c @@ -49,6 +49,7 @@ #include <asm/atomic.h> #include <asm/device.h> #include <asm/io.h> +#include <asm/iommu_fwspec.h> #include <asm/platform.h>/* Xen: The below defines are redefined within the file. Undef it */ Now that we use fwspec, do we really need to keep the MAX_MASTER_STREAMIDS limit? + struct iommu_fwspec *fwspec; NIT: Can the content be const?
NIT: May I ask why did you add the {} here?
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 |