From: David Vrabel Date: Tue, 7 Jan 2014 11:44:32 +0000 (+0000) Subject: x86/xen: compactly store large identity ranges in the p2m X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~54^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cb83e46d032505016ab2565f067e24c8cba9a9d;p=pandora-kernel.git x86/xen: compactly store large identity ranges in the p2m Large (multi-GB) identity ranges currently require a unique middle page (filled with p2m_identity entries) per 1 GB region. Similar to the common p2m_mid_missing middle page for large missing regions, introduce a p2m_mid_identity page (filled with p2m_identity entries) which can be used instead. set_phys_range_identity() thus only needs to allocate new middle pages at the beginning and end of the range. Signed-off-by: David Vrabel Reviewed-by: Konrad Rzeszutek Wilk Tested-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed