Skip to content

Commit 4b0f378

Browse files
committed
fix(xenclient): boot example should use unsupported platform on aarch64
1 parent 3adf9b5 commit 4b0f378

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • crates/xen/xenclient/examples

crates/xen/xenclient/examples/boot.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,15 @@ async fn main() -> Result<()> {
2424
let initrd_path = args.get(2).expect("argument not specified");
2525
let client = XenClient::new().await?;
2626

27+
#[cfg(target_arch = "x86_64")]
28+
let runtime_platform = RuntimePlatformType::Pv;
29+
#[cfg(not(target_arch = "x86_64"))]
30+
let runtime_platform = RuntimePlatformType::Unsupported;
31+
2732
let mut config = DomainConfig::new();
2833
config.platform(PlatformDomainConfig {
2934
uuid: Uuid::new_v4(),
30-
platform: RuntimePlatformType::Pv,
35+
platform: runtime_platform,
3136
kernel: PlatformKernelConfig {
3237
data: Arc::new(fs::read(&kernel_image_path).await?),
3338
format: KernelFormat::ElfCompressed,

0 commit comments

Comments
 (0)