summary refs log tree commit diff
path: root/devices/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'devices/src/lib.rs')
-rw-r--r--devices/src/lib.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/devices/src/lib.rs b/devices/src/lib.rs
index 294a8cb..9d39fbd 100644
--- a/devices/src/lib.rs
+++ b/devices/src/lib.rs
@@ -48,3 +48,14 @@ pub use self::usb::host_backend::host_backend_device_provider::HostBackendDevice
 pub use self::usb::xhci::xhci_controller::XhciController;
 pub use self::vfio::{VfioContainer, VfioDevice};
 pub use self::virtio::VirtioPciDevice;
+
+use msg_socket::MsgOnSocket;
+
+#[derive(Clone, Copy, Debug, MsgOnSocket)]
+pub struct MemoryParams {
+    /// Physical memory size in bytes for the VM.
+    pub size: u64,
+
+    #[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
+    pub has_bios: bool,
+}