diff --git a/src/lib.rs b/src/lib.rs index 7c2f2177..147ddd11 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,8 +23,6 @@ mod hypercall; pub mod mem; pub mod paging; pub mod params; -#[cfg(target_os = "linux")] -pub mod shared_queue; mod vcpu; pub mod virtio; pub mod virtqueue; diff --git a/src/shared_queue.rs b/src/shared_queue.rs deleted file mode 100644 index ce8a541d..00000000 --- a/src/shared_queue.rs +++ /dev/null @@ -1,27 +0,0 @@ -use crate::consts::*; - -#[repr(C)] -pub struct QueueInner { - pub len: u16, - pub data: [u8; UHYVE_NET_MTU + 34], -} - -#[repr(C)] -pub struct SharedQueue { - pub read: usize, - pad0: [u8; 64 - 8], - pub written: usize, - pad1: [u8; 64 - 8], - pub inner: [QueueInner; UHYVE_QUEUE_SIZE], -} - -impl SharedQueue { - pub fn init(&mut self) { - self.read = 0; - self.written = 0; - - for i in self.inner.iter_mut() { - i.len = 0; - } - } -} diff --git a/uhyve-interface/src/lib.rs b/uhyve-interface/src/lib.rs index 8a38b780..be833362 100644 --- a/uhyve-interface/src/lib.rs +++ b/uhyve-interface/src/lib.rs @@ -3,8 +3,8 @@ //! The Uhyve hypercall interface works as follows: //! //! - On `x86_64` you use an out port instruction. The address of the `out`-port corresponds to the -//! hypercall you want to use. You can obtain it from the [`IoPorts`] enum. The data send to -//! that port is the physical memory address (of the VM) of the parameters of that hypercall. +//! hypercall you want to use. You can obtain it from the [`IoPorts`] enum. The data send to +//! that port is the physical memory address (of the VM) of the parameters of that hypercall. //! - On `aarch64` you write to the respective [`HypercallAddress`]. The 64-bit value written to that location is the guest's physical memory address of the hypercall's parameter. #![cfg_attr(not(feature = "std"), no_std)]