|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 1/5] IOMMU: iommu_intremap is x86-only
Hi Jan, On 02/03/2020 10:57, Jan Beulich wrote: On 02.03.2020 11:44, Julien Grall wrote:On 02/03/2020 10:07, Jan Beulich wrote:On 28.02.2020 21:16, Andrew Cooper wrote:On 28/02/2020 12:26, Jan Beulich wrote: "caller" might have been the wrong word here. Let me expand it. The patch you sent contains an #ifdef CONFIG_X86 protecting the declaration of iommu_intremap:
+#ifdef CONFIG_X86
extern enum __packed iommu_intremap {
/*
* In order to allow traditional boolean uses of the iommu_intremap
* variable, the "off" value has to come first (yielding a value of
zero).
*/
iommu_intremap_off,
-#ifdef CONFIG_X86
iommu_intremap_restricted,
-#endif
iommu_intremap_full,
} iommu_intremap;
+#else
+# define iommu_intremap false
+#endif
Someone wanted to use iommu_intremap (and by extent the command line
option) in a new arch would have to modify the declaration for it to
work. A commit message would also likely to contain "Implement the
command line option ...". So a reviewer can spot the change and ask to
update the documentation if this wasn't yet done.
At the inverse, if the new arch is not using iommu_intremap then there will be no modification in the code. Therefore, it may be more difficult for a reviewer to notice that the documentation needs to be updated. 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 |