fix(xenclient): examples should use supported platform

This commit is contained in:
Alex Zenla
2024-12-14 18:33:53 -05:00
parent 4b0f3782bd
commit e0bbeb5d64
3 changed files with 10 additions and 7 deletions

View File

@ -54,6 +54,14 @@ impl RuntimePlatformType {
RuntimePlatformType::Pv => RuntimePlatform::Pv(x86pv::X86PvPlatform::new()),
}
}
pub fn supported() -> RuntimePlatformType {
if cfg!(target_arch = "x86_64") {
RuntimePlatformType::Pv
} else {
RuntimePlatformType::Unsupported
}
}
}
#[allow(clippy::large_enum_variant)]