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

Steffen Eiden
2026-04-07T12:14:03Z

On Thu, Apr 02, 2026 at 05:01:30PM +0200, 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: Steffen Eiden <seiden@linux.ibm.com>