Thread (17 messages) 17 messages, 3 authors, 2021-02-24

Re: [RFC PATCH 1/5] hugetlb: add hugetlb helpers for soft dirty support

From: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Date: 2021-02-24 16:58:16
Also in: linux-s390, lkml

On Wed, 24 Feb 2021 17:46:08 +0100
Gerald Schaefer [off-list ref] wrote:

[...]
Then we fundamentally changed the way how we deal with that "hugetlb code
is treating pmds as ptes" issue. Instead of caring about that in all
huge_pte_xxx primitives, huge_ptep_get() will now return a nicely faked pte
for s390, i.e. something that looks like a pte would look like, and not the
real pmd/pud value. With that, hugetlb code can do all its pte handling on
that fake pte, and the conversion back to a proper pmd/pud is done in
set_huge_pte().
BTW, in case anybody is wondering, this conversion from and to pmd for s390
will also care about the soft dirty bit, even though it was not really used
before for hugetlb. So Mikes approach to add the default primitives for s390
should work fine.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help