From: Stefano Stabellini Date: Mon, 11 Nov 2013 12:50:30 +0000 (+0000) Subject: xen/arm: pfn_to_mfn and mfn_to_pfn return the argument if nothing is in the p2m X-Git-Tag: v3.13-rc1~81^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18c51e1a3fabb455ff1f5cd610097d89f577b8f7;p=pandora-kernel.git xen/arm: pfn_to_mfn and mfn_to_pfn return the argument if nothing is in the p2m Some common Xen drivers, like balloon.c, call pfn_to_mfn and mfn_to_pfn even for autotranslate guests, expecting the argument back. The following commit broke these drivers by changing the behavior of pfn_to_mfn and mfn_to_pfn: commit 4a19138c6505e224d9f4cc2fe9ada9188d7100ea Author: Stefano Stabellini Date: Thu Oct 17 16:22:27 2013 +0000 arm/xen,arm64/xen: introduce p2m They now return INVALID_P2M_ENTRY if Linux doesn't actually know what is the mfn backing a pfn or what is the pfn corresponding to an mfn. Fix the regression by switching to the old behavior. Signed-off-by: Stefano Stabellini Signed-off-by: Konrad Rzeszutek Wilk Acked-by: Ian Campbell Tested-by: Ian Campbell --- Reading git-diff-tree failed