]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: s390: Add some useful mask macros
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Thu, 2 Apr 2026 15:01:30 +0000 (17:01 +0200)
committerClaudio Imbrenda <imbrenda@linux.ibm.com>
Tue, 7 Apr 2026 15:07:14 +0000 (17:07 +0200)
commit6da4b1a4359b3ed5e7ee5e9a9751a9e483906409
tree0aff35522877b9486a2498efefd35a7a00ed7795
parent4aebd7d5c72f805ef59985958ad76b8dbce60d8f
KVM: s390: Add some useful mask macros

Add _{SEGMENT,REGION3}_FR_MASK, similar to _{SEGMENT,REGION3}_MASK, but
working on gfn/pfn instead of addresses. Use them in gaccess.c instead
of using the normal masks plus gpa_to_gfn().

Also add _PAGES_PER_{SEGMENT,REGION3} to make future code more readable.

Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
arch/s390/kvm/dat.h
arch/s390/kvm/gaccess.c