From c6aa49fcb7445610634c7a0fd817aa8400aed503 Mon Sep 17 00:00:00 2001 From: Jonathan Klimt Date: Fri, 20 Sep 2024 10:04:27 +0200 Subject: [PATCH] uhyve-interface: Added dummy implementations for Guest[Virt|Phys]Addr on non x86_64/aarch74 systems --- uhyve-interface/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/uhyve-interface/src/lib.rs b/uhyve-interface/src/lib.rs index 66a24b08..7a440c04 100644 --- a/uhyve-interface/src/lib.rs +++ b/uhyve-interface/src/lib.rs @@ -23,6 +23,13 @@ pub use ::aarch64::paging::VirtAddr as GuestVirtAddr; pub use ::x86_64::addr::PhysAddr as GuestPhysAddr; #[cfg(target_arch = "x86_64")] pub use ::x86_64::addr::VirtAddr as GuestVirtAddr; +#[cfg(not(any(target_arch = "x86_64", target_arch = "aarch64")))] +/// **TODO:** Placeholders to satisfy CI checks. There is no support for other architectures than `x86_64` and `aarch64` yet. **Do not use!** +pub type GuestPhysAddr = usize; +#[cfg(not(any(target_arch = "x86_64", target_arch = "aarch64")))] +/// **TODO:** Placeholders to satisfy CI checks. There is no support for other architectures than `x86_64` and `aarch64` yet. **Do not use!** +pub type GuestVirtAddr = usize; + #[cfg(not(target_pointer_width = "64"))] compile_error!("Using uhyve-interface on a non-64-bit system is not (yet?) supported");