s390x/ipl: Extend the IplParameterBlock struct
commit04ca4b92ecb33703b03b8501bfb3d8b0c551e2e5
authorAlexander Yarygin <yarygin@linux.vnet.ibm.com>
Mon, 13 Jul 2015 12:04:36 +0000 (13 15:04 +0300)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 17 May 2016 13:50:29 +0000 (17 15:50 +0200)
tree0ffae5df7694133b51642c830344d3c592a63f7a
parent9700230b0d6d68d8650206ffd10d132219678db1
s390x/ipl: Extend the IplParameterBlock struct

The IplParameterBlock struct currently has only 200 bytes filled, but it
can be up to 4K.

This patch converts the struct to union with a fully populated struct
inside it and second struct with old values.

For compatibility reasons we disable migration of the extended iplb
field for pre-2.7 machines. Also a guest still can read/write only the
first 200 bytes of IPLB for now.

Signed-off-by: Alexander Yarygin <yarygin@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/ipl.c
hw/s390x/ipl.h
hw/s390x/s390-virtio-ccw.c
target-s390x/misc_helper.c