fix(xen): arm64 is currently unsupported, treat it as such at runtime

This commit is contained in:
Alex Zenla
2024-06-20 17:15:37 -07:00
parent 089c9cbff9
commit 11a34d4834
5 changed files with 99 additions and 9 deletions

View File

@ -7,7 +7,7 @@ use log::error;
use loopdev::LoopControl;
use tokio::sync::Semaphore;
use uuid::Uuid;
use xenclient::{x86pv::X86PvPlatform, XenClient};
use xenclient::XenClient;
use xenstore::{XsdClient, XsdInterface};
use self::{
@ -21,7 +21,11 @@ pub mod channel;
pub mod ip;
pub mod launch;
type RuntimePlatform = X86PvPlatform;
#[cfg(target_arch = "x86_64")]
type RuntimePlatform = xenclient::x86pv::X86PvPlatform;
#[cfg(not(target_arch = "x86_64"))]
type RuntimePlatform = xenclient::unsupported::UnsupportedPlatform;
pub struct GuestLoopInfo {
pub device: String,