Re: [PATCH RFC v2 09/20] loongarch: kvm: remove stack copy address of pXd in pXd_offset()

"David Hildenbrand (Arm)" <[email protected]> Mon, 27 Jul 2026 16:53:03 +0200
Newsgroups org.kernel.vger.linux-openrisc,dev.linux.lists.loongarch,org.infradead.lists.kvm-riscv,org.infradead.lists.linux-riscv,org.kernel.vger.kvm,org.kernel.vger.linux-arch,org.kernel.vger.linux-kernel,org.kernel.vger.linux-mips,org.kvack.linux-mm
Message-ID <[email protected]>
On 7/22/26 17:30, Yeoreum Yun wrote:
> The behaviour of pXdp_get() will change with generic compile-time folded
> page tables. To prepare for that,  rework host_pfn_mapping_level() to avoid
> use of a stack copy of a pXd and pass it as argument to pXd_offset() so that
> the folded entries value is ignored.
> 
> Replace direct uses of stack-based pXd values with pXd_offset_lockless().
> And there should be no functional change.
> 
> Signed-off-by: Yeoreum Yun <[email protected]>
> ---

Reviewed-by: David Hildenbrand (Arm) <[email protected]>

-- 
Cheers,

David