From a5dc93df5b96728226bd3fcbc4298e6fb54f146d Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 13 Mar 2020 22:21:00 +0000 Subject: move MemoryParams to devices --- devices/src/lib.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'devices/src/lib.rs') 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, +} -- cgit 1.4.1