From a10d9a309988331141b13b2ffb5c1f4cc8da6399 Mon Sep 17 00:00:00 2001 From: Anirudh Rayabharam Date: Wed, 8 Apr 2026 17:45:35 +0000 Subject: [PATCH] tests: Ignore live migration tests on mshv arm64 Live migration is not yet supported on mshv arm64. Annotate the applicable integration tests with cfg_attr to ignore them for that configuration. Signed-off-by: Anirudh Rayabharam --- cloud-hypervisor/tests/integration.rs | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/cloud-hypervisor/tests/integration.rs b/cloud-hypervisor/tests/integration.rs index 0dc7a8d64..fb262b00c 100644 --- a/cloud-hypervisor/tests/integration.rs +++ b/cloud-hypervisor/tests/integration.rs @@ -10895,41 +10895,73 @@ mod live_migration { use super::*; #[test] + #[cfg_attr( + all(feature = "mshv", target_arch = "aarch64"), + ignore = "live migration not yet supported on mshv arm64" + )] fn test_live_migration_basic() { _test_live_migration(false, false); } #[test] + #[cfg_attr( + all(feature = "mshv", target_arch = "aarch64"), + ignore = "live migration not yet supported on mshv arm64" + )] fn test_live_migration_local() { _test_live_migration(false, true); } #[test] + #[cfg_attr( + all(feature = "mshv", target_arch = "aarch64"), + ignore = "live migration not yet supported on mshv arm64" + )] fn test_live_migration_tcp() { _test_live_migration_tcp(NonZeroU32::new(1).unwrap()); } #[test] + #[cfg_attr( + all(feature = "mshv", target_arch = "aarch64"), + ignore = "live migration not yet supported on mshv arm64" + )] fn test_live_migration_tcp_parallel_connections() { _test_live_migration_tcp(NonZeroU32::new(8).unwrap()); } #[test] + #[cfg_attr( + all(feature = "mshv", target_arch = "aarch64"), + ignore = "live migration not yet supported on mshv arm64" + )] fn test_live_migration_tcp_timeout_cancel() { _test_live_migration_tcp_timeout(TimeoutStrategy::Cancel); } #[test] + #[cfg_attr( + all(feature = "mshv", target_arch = "aarch64"), + ignore = "live migration not yet supported on mshv arm64" + )] fn test_live_migration_tcp_timeout_ignore() { _test_live_migration_tcp_timeout(TimeoutStrategy::Ignore); } #[test] + #[cfg_attr( + all(feature = "mshv", target_arch = "aarch64"), + ignore = "live migration not yet supported on mshv arm64" + )] fn test_live_migration_watchdog() { _test_live_migration_watchdog(false, false); } #[test] + #[cfg_attr( + all(feature = "mshv", target_arch = "aarch64"), + ignore = "live migration not yet supported on mshv arm64" + )] fn test_live_migration_watchdog_local() { _test_live_migration_watchdog(false, true); } @@ -10982,11 +11014,19 @@ mod live_migration { } #[test] + #[cfg_attr( + all(feature = "mshv", target_arch = "aarch64"), + ignore = "live migration not yet supported on mshv arm64" + )] fn test_live_migration_balloon() { _test_live_migration_balloon(false, false); } #[test] + #[cfg_attr( + all(feature = "mshv", target_arch = "aarch64"), + ignore = "live migration not yet supported on mshv arm64" + )] fn test_live_migration_balloon_local() { _test_live_migration_balloon(false, true); }