Re: [PATCH 1/2] riscv: mm: add support for CONFIG_DEBUG_VIRTUAL

From: Paul Walmsley
Date: Tue Jan 21 2020 - 23:39:13 EST


On Thu, 2 Jan 2020, Zong Li wrote:

> This patch implements CONFIG_DEBUG_VIRTUAL to do additional checks on
> virt_to_phys and __pa_symbol calls. virt_to_phys used for linear mapping
> check, and __pa_symbol used for kernel symbol check. In current RISC-V,
> kernel image maps to linear mapping area. If CONFIG_DEBUG_VIRTUAL is
> disable, these two functions calculate the offset on the address feded
> directly without any checks.

Reviewed-by: Paul Walmsley <paul.walmsley@xxxxxxxxxx>
Tested-by: Paul Walmsley <paul.walmsley@xxxxxxxxxx>


- Paul