From 59e92f197271fbb7a4d4c3b13e89b6c64939aa2f Mon Sep 17 00:00:00 2001 From: Leander Kohler Date: Wed, 18 Mar 2026 13:49:21 +0100 Subject: [PATCH] main: print supported protocol versions Print the supported vm-migration protocol version range in cloud-hypervisor --version as an extra line: vm-migration protocol versions v0-v1 This makes the currently supported compatibility window visible without having to inspect the migration code. On-behalf-of: SAP leander.kohler@sap.com Signed-off-by: Leander Kohler --- cloud-hypervisor/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cloud-hypervisor/src/main.rs b/cloud-hypervisor/src/main.rs index 69cc9ec60..db1b43e0d 100644 --- a/cloud-hypervisor/src/main.rs +++ b/cloud-hypervisor/src/main.rs @@ -880,6 +880,11 @@ fn main() { if cmd_arguments.get_flag("version") { println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILD_VERSION")); + let migration_protocol_versions = vm_migration::protocol::supported_protocol_versions() + .map(|version| version.to_string()) + .collect::>() + .join(", "); + println!("Migration Protocol Versions: {migration_protocol_versions}"); if cmd_arguments.get_count("v") != 0 { println!("Enabled features: {:?}", vmm::feature_list());