From: Ian Campbell Subject: Re: [PATCH] xen/arm: pfn_to_mfn and mfn_to_pfn return the argument if nothing is in the p2m Date: Mon, 11 Nov 2013 13:03:47 +0000 Message-ID: <1384175027.19117.15.camel@kazak.uk.xensource.com> References: <1384174231-27176-1-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1384174231-27176-1-git-send-email-stefano.stabellini@eu.citrix.com> Sender: linux-kernel-owner@vger.kernel.org To: Stefano Stabellini Cc: xen-devel@lists.xensource.com, linux-kernel@vger.kernel.org, konrad.wilk@oracle.com List-Id: xen-devel@lists.xenproject.org On Mon, 2013-11-11 at 12:50 +0000, Stefano Stabellini wrote: > 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 Acked-by: Ian Campbell I tripped over this on Friday and my local hack was identical, hence also: Tested-by: Ian Campbell Ian.