Migration blockers do not currently cover every device-state save path. The TPM CRB blocker only covers normal migration even though CPR cannot preserve unsupported chunk state. xen-save-devices-state also operates outside the MigMode machinery and ignores blockers entirely.
Make the TPM CRB blocker apply to every migration class and add a Xen-specific class that xen-save-devices-state checks. Keep vhost-scsi's same-host CPR exemption while extending its default blocker to Xen device-state saves. Signed-off-by: Akihiko Odaki <[email protected]> --- Akihiko Odaki (2): hw/tpm: Block CPR with unsupported CRB chunk migration migration: Implement Xen migration blocker include/migration/blocker.h | 10 ++++++- include/qemu/accel.h | 2 +- migration/migration.h | 2 ++ accel/accel-system.c | 25 +++++++++++++----- hw/scsi/vhost-scsi.c | 5 +++- hw/tpm/tpm_crb.c | 2 +- migration/migration.c | 63 ++++++++++++++++++++++++++++++++++++++------- migration/savevm.c | 4 +++ system/vl.c | 9 ++++--- 9 files changed, 100 insertions(+), 22 deletions(-) --- base-commit: 209b2afaface001c7d4d981e38f186afe7b24a50 change-id: 20260731-xen-bf7d034abc99 Best regards, -- Akihiko Odaki <[email protected]>
