From d9ae27bbdcd4011b95449104f96b28bf9b846df0 Mon Sep 17 00:00:00 2001 From: Juergen Gross Date: Thu, 12 Nov 2015 14:43:31 +0100 Subject: [PATCH] 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 --- grub/kexec.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 */ -- 2.39.5