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 <muislam@microsoft.com>
This commit is contained in:
Muminul Islam
2026-04-02 23:42:39 -07:00
committed by Rob Bradford
parent 7d684e3add
commit 3440802c99

View File

@@ -1907,6 +1907,14 @@ fn main() {
.unwrap_or_default(), .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. // 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_")); let needs_vm_tests = tests_to_run.iter().any(|t| !t.name.starts_with("micro_"));