Skip to content

Commit

Permalink
uhyve-interface: Added dummy implementations for Guest[Virt|Phys]Addr…
Browse files Browse the repository at this point in the history
… on non x86_64/aarch74 systems
  • Loading branch information
jounathaen committed Sep 20, 2024
1 parent e5a38b2 commit 558c973
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions uhyve-interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ 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");
Expand Down

0 comments on commit 558c973

Please sign in to comment.