From: Olaf Hering Date: Thu, 7 Apr 2016 16:31:01 +0000 (+0200) Subject: tools: handle xl migrate --debug in legacy stream X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~1340 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=281962851f8bd59c6aed2efee222337349857e3a;p=xen.git tools: handle xl migrate --debug in legacy stream Doing a 'xl migrate --debug domU host' on xen-4.5 adds a XC_SAVE_ID_ENABLE_VERIFY_MODE marker, which is not handled. Since using --debug is valid usage, handle it by logging the fact instead of aborting the migration. Signed-off-by: Olaf Hering Cc: Ian Jackson Reviewed-by: Andrew Cooper Acked-by: Wei Liu --- diff --git a/tools/python/scripts/convert-legacy-stream b/tools/python/scripts/convert-legacy-stream index 41fee10918..5f80f13654 100755 --- a/tools/python/scripts/convert-legacy-stream +++ b/tools/python/scripts/convert-legacy-stream @@ -389,8 +389,7 @@ def read_chunks(vm): write_page_data(pfns, pages) elif marker == legacy.CHUNK_enable_verify_mode: - # For debugging purposes only. Will not be seen in real migration - raise RuntimeError("Unable to convert a debug stream") + info("This is a debug stream") elif marker == legacy.CHUNK_vcpu_info: max_id, = unpack_exact("i")