Reorganize struct xc_dom_image to contain a pointer to domain builder
architecture specific private data. This will abstract the architecture
or domain type specific data from the general used data.
The new area is allocated as soon as the domain type is known.
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
#endif
/* equivalent of xc_dom_mem_init */
- dom->arch_hooks = xc_dom_find_arch_hooks(xc_handle, dom->guest_type);
+ if (xc_dom_set_arch_hooks(dom)) {
+ grub_printf("xc_dom_set_arch_hooks failed\n");
+ errnum = ERR_EXEC_FORMAT;
+ goto out;
+ }
dom->total_pages = start_info.nr_pages;
/* equivalent of arch_setup_meminit */