]> xenbits.xensource.com Git - mini-os.git/commit
mini-os: mm: introduce generic page table walk function
authorJuergen Gross <jgross@suse.com>
Tue, 20 Aug 2024 14:10:45 +0000 (16:10 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Aug 2024 14:10:45 +0000 (16:10 +0200)
commitc5a8cb5876c3bb416d255e9c8bba0bc4bc8a654c
tree664f62e1a73518885357e6516bd3cc727f457863
parentdc3b68bf37f401c98d598e37344a73a60a4a67e9
mini-os: mm: introduce generic page table walk function

In x86 mm code there are multiple instances of page table walks for
different purposes.

Introduce a generic page table walker being able to cover the current
use cases. It will be used for other cases in future, too.

The page table walker needs some per-level data, so add a table for
that data. Merge it with the already existing pt_prot[] array.

Rewrite get_pgt() to use the new walker.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
arch/x86/mm.c