On 28.11.25 15:19, Jan Beulich wrote:
On 28.11.2025 13:11, Grygorii Strashko wrote:
On 27.11.25 18:26, Oleksii Kurochko wrote:
--- a/xen/common/domain.c
+++ b/xen/common/domain.c
@@ -799,6 +799,28 @@ static int sanitise_domain_config(struct
xen_domctl_createdomain *config)
return arch_sanitise_domain_config(config);
}
+struct domain *alloc_domain_struct(void)
+{
+#ifndef arch_domain_struct_memflags
+# define arch_domain_struct_memflags() 0
+#endif
Is it really the right way to
hide part of common interface in common code instead of header?
If it had multiple uses in different files, surely it should be put in a header.
In this case though, with (even long term) there being only a single use site, I
don't see why we should even bother figuring out which header would be an
appropriate place for it to live in.
Thank you for clarification.
--
Best regards,
-grygorii