@@ -34,6 +34,11 @@ static inline void vesa_init(void) {};
static inline void vesa_mtrr_init(void) {};
#endif
+struct domain *__init create_dom0(const module_t *image,
+ unsigned long headroom,
+ module_t *initrd, const char *kextra,
+ const char *loader);
+
int construct_dom0(
struct domain *d,
const module_t *kernel, unsigned long kernel_headroom,
@@ -755,10 +755,10 @@ static unsigned int __init copy_bios_e820(struct e820entry *map, unsigned int li
return n;
}
-static struct domain *__init create_dom0(const module_t *image,
- unsigned long headroom,
- module_t *initrd, const char *kextra,
- const char *loader)
+struct domain *__init create_dom0(const module_t *image,
+ unsigned long headroom,
+ module_t *initrd, const char *kextra,
+ const char *loader)
{
struct xen_domctl_createdomain dom0_cfg = {
.flags = IS_ENABLED(CONFIG_TBOOT) ? XEN_DOMCTL_CDF_s3_integrity : 0,