s390/mm: convert pte_val()/pXd_val() into functions
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 21 Feb 2022 20:25:19 +0000 (21:25 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 1 Mar 2022 20:05:10 +0000 (21:05 +0100)
commit966ffbd8615a5c1b0bf474314bbd9ea8eb6ef423
treee262b0f3543edb9bf10b9d38fc178b80e27b5c73
parente1fc74ff23463f308709b824eed0d73e0a345f4e
s390/mm: convert pte_val()/pXd_val() into functions

Disallow constructs like this:

        pte_val(*pte) = __pa(addr) | prot;

which would directly write into a page table. Users are supposed to
use the set_pte()/set_pXd() primitives, which guarantee block
concurrent (aka atomic) writes.

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/page.h