From: Juergen Gross Date: Thu, 12 Nov 2015 13:43:31 +0000 (+0100) Subject: libxc: introduce domain builder architecture specific data X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d9ae27bbdcd4011b95449104f96b28bf9b846df0;p=people%2Fliuw%2Fstubdom.git libxc: introduce domain builder architecture specific data 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 Acked-by: Wei Liu --- diff --git a/grub/kexec.c b/grub/kexec.c index 2300318..8fd9ff9 100644 --- a/grub/kexec.c +++ b/grub/kexec.c @@ -272,7 +272,11 @@ void kexec(void *kernel, long kernel_size, void *module, long module_size, char #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 */