]> xenbits.xensource.com Git - mini-os.git/commit
mini-os: mm: convert set_readonly() to use walk_pt()
authorJuergen Gross <jgross@suse.com>
Tue, 20 Aug 2024 14:11:31 +0000 (16:11 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Aug 2024 14:11:31 +0000 (16:11 +0200)
commit3932490a01cfb1bf69a1bf95c9b1f37a3fdce8b3
tree2769ccd74772e7a9e24c84aa830023ea9026df5a
parent34bce475c42c844d382f00f799f332c380d38f1d
mini-os: mm: convert set_readonly() to use walk_pt()

Instead of having another copy of a page table walk in set_readonly(),
just use walk_pt().

As it will be needed later anyway, split out the TLB flushing into a
dedicated function.

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