libxc: add p2m_size to xc_dom_image
authorWei Liu <wei.liu2@citrix.com>
Mon, 16 Mar 2015 09:52:22 +0000 (09:52 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 18 Mar 2015 12:04:54 +0000 (12:04 +0000)
commit840837907c6186307c19abbec926852ba448facd
tree6eaba4e8b12aa8ed2b2dca946c8d87b08b6ca896
parent61e8e8079a4e984600713b492944d6427b9f77cf
libxc: add p2m_size to xc_dom_image

Add a new field p2m_size to keep track of the number of pages covered by
p2m.  Change total_pages to p2m_size in functions which in fact need
the size of p2m.

This is needed because we are going to ditch the assumption that PV x86
has only one contiguous ram region. Originally the p2m size was always
equal to total_pages, but we will soon change that in later patch.

This patch doesn't change the behaviour of libxc.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/include/xc_dom.h
tools/libxc/xc_dom_arm.c
tools/libxc/xc_dom_core.c
tools/libxc/xc_dom_x86.c