x86/p2m/pod: make it build with !CONFIG_HVM
authorWei Liu <wei.liu2@citrix.com>
Fri, 21 Sep 2018 15:54:49 +0000 (16:54 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 24 Sep 2018 16:45:16 +0000 (17:45 +0100)
commit72a901d7a04305f24f7b1e723e6cf18c744cff95
tree74e16a4aa4b12a40bfd329142615aae0d0db2338
parent39d42a2daee3d0b4c12ce7391faf4763eff09e6b
x86/p2m/pod: make it build with !CONFIG_HVM

Populate-on-demand is HVM only.

Provide a bunch of stubs for common p2m code and guard one invocation
of guest_physmap_mark_populate_on_demand with is_hvm_domain.

Put relevant fields in p2m_domain and code which touches those fields
under CONFIG_HVM.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/domctl.c
xen/arch/x86/mm.c
xen/arch/x86/mm/p2m-pod.c
xen/arch/x86/mm/p2m-pt.c
xen/arch/x86/mm/p2m.c
xen/common/memory.c
xen/common/vm_event.c
xen/include/asm-x86/p2m.h