libxl: Store e820 map in xc_dom_image

We will later copy it to hvm_start_info.

(Also remove stale comment claming that xc_dom_image.start_info_seg is
only used for HVMlite guests)

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
Boris Ostrovsky authored and Wei Liu committed 2018-04-03 16:10:07 +01:00
1 parent f76d81d6e8
commit 3c201391cf
2 files changed
+9 -1

No files matched your search

+6 -1
View File
@@ -99,7 +99,7 @@ struct xc_dom_image {
struct xc_dom_seg p2m_seg;
struct xc_dom_seg pgtables_seg;
struct xc_dom_seg devicetree_seg;
struct xc_dom_seg start_info_seg; /* HVMlite only */
struct xc_dom_seg start_info_seg;
xen_pfn_t start_info_pfn;
xen_pfn_t console_pfn;
xen_pfn_t xenstore_pfn;
@@ -224,6 +224,11 @@ struct xc_dom_image {
/* Extra SMBIOS structures passed to HVMLOADER */
struct xc_hvm_firmware_module smbios_module;
#if defined(__i386__) || defined(__x86_64__)
struct e820entry *e820;
unsigned int e820_entries;
#endif
xen_pfn_t vuart_gfn;
};
+3
View File
@@ -578,6 +578,9 @@ static int domain_construct_memmap(libxl__gc *gc,
goto out;
}
dom->e820 = e820;
dom->e820_entries = e820_entries;
out:
return rc;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.