During live migration of an s390x guest, the destination host must match
the source's Secure IPL boot mode and provide any certificates required
for guest verification. Without validation, migration may succeed even
though a subsequent boot on the destination would fail due to
mismatched settings or missing certificates.
This series adds migration-time validation to the s390 IPL device. It
verifies that the Secure IPL boot mode matches between source and
destination and serializes the name and SHA-256 fingerprint of each
certificate used during verification. Migration is rejected if the boot
modes differ. In Secure mode, missing certificates also cause migration
to fail. In Audit mode, missing certificates generate a warning but do
not prevent migration, since signature verification is not strictly
enforced.
Zhuoying Cai (4):
s390/ipl: Compute and store SHA256 fingerprint per boot certificate
s390/ipl: Track boot certificates used during signature verification
s390/ipl: Validate boot certificates during migration
s390/ipl: Validate boot mode consistency across migration
hw/s390x/cert-store.c | 59 +++++++++++++++++
hw/s390x/cert-store.h | 6 ++
hw/s390x/ipl.c | 146 +++++++++++++++++++++++++++++++++++++++++-
target/s390x/diag.c | 3 +
4 files changed, 211 insertions(+), 3 deletions(-)
--
2.56.1