We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3adf9b5 commit 4b0f378Copy full SHA for 4b0f378
1 file changed
crates/xen/xenclient/examples/boot.rs
@@ -24,10 +24,15 @@ async fn main() -> Result<()> {
24
let initrd_path = args.get(2).expect("argument not specified");
25
let client = XenClient::new().await?;
26
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
+
32
let mut config = DomainConfig::new();
33
config.platform(PlatformDomainConfig {
34
uuid: Uuid::new_v4(),
- platform: RuntimePlatformType::Pv,
35
+ platform: runtime_platform,
36
kernel: PlatformKernelConfig {
37
data: Arc::new(fs::read(&kernel_image_path).await?),
38
format: KernelFormat::ElfCompressed,
0 commit comments