mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
7d684e3add
commit
3440802c99
@@ -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_"));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user