[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 3/5] libxc: Allow loading of firmware modules for HVM guest
This allows to load iPXE rom as a firmware module, instead of requiring it to be embedded into hvmloader. Signed-off-by: Anoob Soman <anoob.soman@xxxxxxxxxx> --- tools/libxc/xc_dom_x86.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tools/libxc/xc_dom_x86.c b/tools/libxc/xc_dom_x86.c index 0b65dab..be06d43 100644 --- a/tools/libxc/xc_dom_x86.c +++ b/tools/libxc/xc_dom_x86.c @@ -1723,6 +1723,19 @@ static int bootlate_hvm(struct xc_dom_image *dom) { add_module_to_list(dom, &dom->system_firmware_module, "firmware", modlist, start_info); + for ( i = 0; i < dom->num_modules; i++ ) + { + struct xc_hvm_firmware_module mod; + + DOMPRINTF("Adding module %u", i); + mod.guest_addr_out = + dom->modules[i].seg.vstart; + mod.length = + dom->modules[i].seg.vend - dom->modules[i].seg.vstart; + + add_module_to_list(dom, &mod, dom->modules[i].cmdline, + modlist, start_info); + } } if ( start_info->nr_modules ) -- 1.8.3.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |