pub struct FirmwareLayout {
pub bios: BiosInfo,
pub option_rom: Option<OptionRomInfo>,
pub cmos_floppy_type: u8,
pub extended_memory_kib: u16,
}Expand description
Result of installing a firmware image in a world.
Fields§
§bios: BiosInfoValidated BIOS image.
option_rom: Option<OptionRomInfo>VGA option ROM, when one was installed.
cmos_floppy_type: u8CMOS floppy-drive type written by the caller.
extended_memory_kib: u16Extended memory advertised to the firmware, in KiB (above 1 MiB).
Implementations§
Source§impl FirmwareLayout
impl FirmwareLayout
Sourcepub const fn reset_linear(&self) -> u32
pub const fn reset_linear(&self) -> u32
Linear address of the first instruction the vCPU executes.
Sourcepub const fn reset_segment(&self) -> u16
pub const fn reset_segment(&self) -> u16
Real-mode segment of the reset state.
Sourcepub const fn contains_bios(&self, gpa: u32) -> bool
pub const fn contains_bios(&self, gpa: u32) -> bool
True when gpa lies inside the installed BIOS image.
Trait Implementations§
Source§impl Clone for FirmwareLayout
impl Clone for FirmwareLayout
impl Copy for FirmwareLayout
Source§impl Debug for FirmwareLayout
impl Debug for FirmwareLayout
impl Eq for FirmwareLayout
Source§impl PartialEq for FirmwareLayout
impl PartialEq for FirmwareLayout
impl StructuralPartialEq for FirmwareLayout
Auto Trait Implementations§
impl Forget for FirmwareLayout
impl Freeze for FirmwareLayout
impl Move for FirmwareLayout
impl RefUnwindSafe for FirmwareLayout
impl Send for FirmwareLayout
impl Sync for FirmwareLayout
impl Unpin for FirmwareLayout
impl UnsafeUnpin for FirmwareLayout
impl UnwindSafe for FirmwareLayout
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more