From: Mukesh Rathor Date: Fri, 13 Dec 2013 17:09:28 +0000 (-0500) Subject: xen/p2m: Check for auto-xlat when doing mfn_to_local_pfn. X-Git-Tag: v3.14-rc1~126^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc590efe667338f7da250cf2d2eb6fdd486e1b97;p=pandora-kernel.git xen/p2m: Check for auto-xlat when doing mfn_to_local_pfn. Most of the functions in page.h are prefaced with if (xen_feature(XENFEAT_auto_translated_physmap)) return mfn; Except the mfn_to_local_pfn. At a first sight, the function should work without this patch - as the 'mfn_to_mfn' has a similar check. But there are no such check in the 'get_phys_to_machine' function - so we would crash in there. This fixes it by following the convention of having the check for auto-xlat in these static functions. Signed-off-by: Mukesh Rathor Signed-off-by: Konrad Rzeszutek Wilk Acked-by: Stefano Stabellini --- Reading git-diff-tree failed