KVM: s390: vsie: clarifications on setting the APCB
authorPierre Morel <pmorel@linux.ibm.com>
Tue, 14 Feb 2023 12:28:41 +0000 (13:28 +0100)
committerJanosch Frank <frankja@linux.ibm.com>
Thu, 20 Apr 2023 14:30:34 +0000 (16:30 +0200)
commit7be3e3392335131b2234fa3e6feda3e989cb837c
treeb8c694325bef735a429475dde6e22a7183ccff1d
parent2f2c0911b950794dbf394ee2d784138fbf714dbd
KVM: s390: vsie: clarifications on setting the APCB

The APCB is part of the CRYCB.
The calculation of the APCB origin can be done by adding
the APCB offset to the CRYCB origin.

Current code makes confusing transformations, converting
the CRYCB origin to a pointer to calculate the APCB origin.

Let's make things simpler and keep the CRYCB origin to make
these calculations.

Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Link: https://lore.kernel.org/r/20230214122841.13066-2-pmorel@linux.ibm.com
Message-Id: <20230214122841.13066-2-pmorel@linux.ibm.com>
arch/s390/kvm/vsie.c