mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 21:21:32 +00:00
fix(xenclient): examples should use supported platform
This commit is contained in:
@ -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)]
|
||||
|
Reference in New Issue
Block a user