Re: [PATCH v3 1/6] KVM: s390: Add some useful mask macros

Christoph Schlameuss
2026-04-09T13:42:01Z

On Thu Apr 2, 2026 at 5:01 PM CEST, Claudio Imbrenda wrote:
> 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.
>
> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>

Reviewed-by: Christoph Schlameuss <schlameuss@linux.ibm.com>

> ---
> arch/s390/kvm/dat.h | 5 +++++
> arch/s390/kvm/gaccess.c | 2 +-
> 2 files changed, 6 insertions(+), 1 deletion(-)