Re: [PATCH 2/2] arm64: Reduce PT size estimation complexity

2023-03-07 Thread Tom Rini
On Tue, Feb 14, 2023 at 09:38:14PM +0800, Ying-Chun Liu (PaulLiu) wrote: > From: Marc Zyngier > > count_required_pts()'s complexity is high if mappings are not using the > largest possible block size (due to some other requirement such as tracking > dirty pages, for example). > > Let's switch t

[PATCH 2/2] arm64: Reduce PT size estimation complexity

2023-02-14 Thread Ying-Chun Liu (PaulLiu)
From: Marc Zyngier count_required_pts()'s complexity is high if mappings are not using the largest possible block size (due to some other requirement such as tracking dirty pages, for example). Let's switch to a method that follows the pattern established with the add_map() helper, and make it a