I find it useful for debugging certain issues to have the memory map
dom0 is using, so print it when using `dom0=verbose` on the command
line.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
e820.nr_map++;
}
-static void __init print_e820_memory_map(struct e820entry *map, unsigned int entries)
+void __init print_e820_memory_map(const struct e820entry *map,
+ unsigned int entries)
{
unsigned int i;
return rc;
}
+ if ( opt_dom0_verbose )
+ {
+ printk("Dom%u memory map:\n", d->domain_id);
+ print_e820_memory_map(d->arch.e820, d->arch.nr_e820);
+ }
+
printk("WARNING: PVH is an experimental mode with limited functionality\n");
return 0;
}
extern int e820_add_range(
struct e820map *, uint64_t s, uint64_t e, uint32_t type);
extern unsigned long init_e820(const char *, struct e820map *);
+extern void print_e820_memory_map(const struct e820entry *map,
+ unsigned int entries);
extern struct e820map e820;
extern struct e820map e820_raw;