pub struct VmiInfo {
pub page_size: u64,
pub page_shift: u64,
pub max_gfn: Gfn,
pub vcpus: u16,
}
Expand description
Represents information about the VMI.
Fields§
§page_size: u64
The size of a page in bytes.
page_shift: u64
The shift value to convert a page number to a page address.
max_gfn: Gfn
The maximum guest frame number.
vcpus: u16
The number of virtual CPUs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VmiInfo
impl<'de> Deserialize<'de> for VmiInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VmiInfo
impl RefUnwindSafe for VmiInfo
impl Send for VmiInfo
impl Sync for VmiInfo
impl Unpin for VmiInfo
impl UnwindSafe for VmiInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more