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

From: Christoph Schlameuss

Date: Thu Apr 09 2026 - 09:50:44 EST


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@xxxxxxxxxxxxx>

Reviewed-by: Christoph Schlameuss <schlameuss@xxxxxxxxxxxxx>

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