[RESEND PATCH v2] arm/arm64: kvm: Use virt_to_idmap instead of virt_to_phys for idmap mappings

Christoffer Dall christoffer.dall at linaro.org
Wed Dec 11 15:52:07 EST 2013


On Wed, Dec 11, 2013 at 10:01:45AM +0000, Marc Zyngier wrote:
> On 11/12/13 00:23, Christoffer Dall wrote:
> > On Tue, Dec 10, 2013 at 02:45:17PM -0500, Santosh Shilimkar wrote:
> >> Christoffer,
> >>
> >> On Tuesday 19 November 2013 02:59 PM, Santosh Shilimkar wrote:
> >>> KVM initialisation fails on architectures implementing virt_to_idmap()
> >>> because virt_to_phys() on such architectures won't fetch you the correct
> >>> idmap page.
> >>>
> >>> So update the KVM ARM code to use the virt_to_idmap() to fix the issue.
> >>> Since the KVM code is shared between arm and arm64, we create
> >>> kvm_virt_to_phys() and handle the redirection in respective headers.
> >>>
> >>> Cc: Christoffer Dall <christoffer.dall at linaro.org>
> >>> Cc: Marc Zyngier <marc.zyngier at arm.com>
> >>> Cc: Catalin Marinas <catalin.marinas at arm.com>
> >>> Signed-off-by: Santosh Shilimkar <santosh.shilimkar at ti.com>
> >>> ---
> >>> Update the earlier version as per Marc's suggestion
> >>>
> >> Have you picked this up for 3.14 ?
> >>
> > 
> > Actually, I was waiting for Marc to ack this one.  Marc?
> 
> Acked-by: Marc Zyngier <marc.zyngier at arm.com>
> 
> 	M.

Thanks, applied.

-Christoffer



More information about the linux-arm-kernel mailing list