Re: [PATCH RFC v2 10/20] riscv: kvm: remove stack copy address of pXd in pXd_offset()
"David Hildenbrand (Arm)" <[email protected]> Mon, 27 Jul 2026 16:53:20 +0200
| Newsgroups | 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.kernel.vger.linux-openrisc,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 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 <[email protected]> > --- Reviewed-by: David Hildenbrand (Arm) <[email protected]> -- Cheers, David