On 24/06/2020 22.23, Collin Walling wrote:
Rework the SCLP boundary check to account for different SCLP commands
(eventually) allowing different boundary sizes.
Move the length check code into a separate function, and introduce a
new function to determine the length of the read SCP data (i.e. the size
from the start of the struct to where the CPU entries should begin).
The format of read CPU info is unlikely to change in the future,
so we do not require a separate function to calculate its length.
Signed-off-by: Collin Walling <wall...@linux.ibm.com>
Acked-by: Janosch Frank <fran...@linux.ibm.com>
Reviewed-by: Cornelia Huck <coh...@redhat.com>
---
hw/s390x/sclp.c | 54 ++++++++++++++++++++++++++++++++++++++++---------
1 file changed, 44 insertions(+), 10 deletions(-)
Reviewed-by: Thomas Huth <th...@redhat.com>