Re: [PATCH] xen/arm: pfn_to_mfn and mfn_to_pfn return the argumentif nothing is in the p2m

From: Ian Campbell
Date: Mon Nov 11 2013 - 08:04:03 EST


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 <stefano.stabellini@xxxxxxxxxxxxx>
> 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 <stefano.stabellini@xxxxxxxxxxxxx>

Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

I tripped over this on Friday and my local hack was identical, hence
also:

Tested-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

Ian.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/