Re: [PATCH RFC v2 10/20] riscv: kvm: remove stack copy address of pXd in pXd_offset()
From: David Hildenbrand (Arm)
Date: Mon Jul 27 2026 - 11:08:22 EST
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 get_hva_mapping_size() 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 <yeoreum.yun@xxxxxxx>
> ---
Reviewed-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
--
Cheers,
David