|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC][PATCH 10/13] tools: extend XENMEM_set_memory_map
Wei, Thanks for your quick comment. +static int libxl__domain_construct_memmap(libxl_ctx *ctx,Internal function should take libxl__gc *gc. Right. + libxl_domain_config *d_config, + uint32_t domid, + struct xc_hvm_build_args *args, + int num_pcidevs, + libxl_device_pci *pcidevs)I think domid, num_pcidevs and pcidevs should be in d_config by the time you call this function? At least num_pcidevs and pcidevs should be Yes, but looks 'domid' is still needed. available. That said, I don't see pci stuff being used anywhere in the function, so please just delete them. Sorry I really should clean these stuffs.
No. These e820 entries will be used in hvmloader.Note these constructed e820 info are based on args->mem_size, args->lowmem_size and args->mmio_size. And looks these fields are never changed inside xc_hvm_build_args(). Note that they are only available *after* calling xc_hvm_build, which seems to *not* be the case for you. So if you somehow find those fields useful you might want to consider moving the callsite a bit later. But I think I'd better follow your logic here since we can't guarantee all related fields wouldn't be modified in the future. So I will push libxl__domain_construct_memmap() after xc_hvm_build_args().
Good simplification.
Sure. + + /* Low memory */ + e820[nr].addr = 0x100000;Hardcoded value?
Yes. Actually, we intend to use this to present that lowmem entry,
tools/firmware/hvmloader/e820.c:
/* Low RAM goes here. Reserve space for special pages. */
...
e820[nr].addr = 0x100000;
Sure. + return -1; + } + + free(e820);Ditto. Sure. Thanks Tiejun _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |