Skip to content

Commit

Permalink
fix(xenclient): boot example should use unsupported platform on aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
azenla committed Dec 14, 2024
1 parent 3adf9b5 commit 4b0f378
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/xen/xenclient/examples/boot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,15 @@ async fn main() -> Result<()> {
let initrd_path = args.get(2).expect("argument not specified");
let client = XenClient::new().await?;

#[cfg(target_arch = "x86_64")]
let runtime_platform = RuntimePlatformType::Pv;
#[cfg(not(target_arch = "x86_64"))]
let runtime_platform = RuntimePlatformType::Unsupported;

let mut config = DomainConfig::new();
config.platform(PlatformDomainConfig {
uuid: Uuid::new_v4(),
platform: RuntimePlatformType::Pv,
platform: runtime_platform,
kernel: PlatformKernelConfig {
data: Arc::new(fs::read(&kernel_image_path).await?),
format: KernelFormat::ElfCompressed,
Expand Down

0 comments on commit 4b0f378

Please sign in to comment.