From 3440802c997965392fdd9ea9affcd3a3109b3089 Mon Sep 17 00:00:00 2001 From: Muminul Islam Date: Thu, 2 Apr 2026 23:42:39 -0700 Subject: [PATCH] performance-metrics: CVM not supported on AArch64 Confidential VMs (CVM) are not currently supported on the AArch64 architecture. Add an early check in the performance metrics binary to exit with a clear error message when CVM mode is selected on AArch64. Signed-off-by: Muminul Islam --- performance-metrics/src/main.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/performance-metrics/src/main.rs b/performance-metrics/src/main.rs index 99ddf699f..9687ae1c2 100644 --- a/performance-metrics/src/main.rs +++ b/performance-metrics/src/main.rs @@ -1907,6 +1907,14 @@ fn main() { .unwrap_or_default(), }); + #[cfg(target_arch = "aarch64")] + { + if overrides.vm_type == GuestVmType::Confidential { + eprintln!("Confidential VM is currently not supported on Arm64"); + std::process::exit(1); + } + } + // Skip heavy VM level init/cleanup when only micro benchmarks are selected. let needs_vm_tests = tests_to_run.iter().any(|t| !t.name.starts_with("micro_"));