]> xenbits.xensource.com Git - xen.git/commit
pvh dom0: construct_dom0 changes
authorMukesh Rathor <mukesh.rathor@oracle.com>
Thu, 8 May 2014 12:18:27 +0000 (14:18 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 8 May 2014 12:18:27 +0000 (14:18 +0200)
commit9a28170f2da2fff0b26736909b74e93d52351b1f
tree021e33a7cc12397acad300b6a83bc3b0e0f1efa6
parent36cfcb43e9a4066e34c64659ac8c7248d169a8db
pvh dom0: construct_dom0 changes

This patch changes construct_dom0() to boot in pvh mode:
  - Make sure dom0 elf supports pvh mode.
  - Call guest_physmap_add_page for pvh rather than simple p2m setting
  - Map all non-RAM regions 1:1 upto the end region in e820 or 4GB which
    ever is higher.
  - Allocate p2m, copying calculation from toolstack.
  - Allocate shared info page from the virtual space so that dom0 PT
    can be updated. Then update p2m for it with the actual mfn.
  - Since we build the page tables for pvh same as for pv, in
    pvh_fixup_page_tables_for_hap we replace the mfns with pfns.

Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/domain_build.c
xen/arch/x86/mm/hap/hap.c
xen/include/asm-x86/hap.h