pub struct HclCompatNvramQuirks {
pub skip_corrupt_vars_with_missing_null_term: bool,
}
Expand description
“Quirks” to take into account when loading/storing nvram blob data.
Fields§
§skip_corrupt_vars_with_missing_null_term: bool
When loading nvram variables from storage, don’t fail the entire load process when encountering variables that are missing null terminators in their name. Instead, skip loading any such variables, and continue on with the load.
§Context
Due to a (now fixed) bug in a previous version of Microsoft HCL, it was possible for non-null-terminated nvram variables to slip-through validation and get persisted to disk.
Enabling this quirk will allow “salvaging” the rest of the non-corrupt nvram variables, which may be preferable over having the VM fail to boot at all.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HclCompatNvramQuirks
impl RefUnwindSafe for HclCompatNvramQuirks
impl Send for HclCompatNvramQuirks
impl Sync for HclCompatNvramQuirks
impl Unpin for HclCompatNvramQuirks
impl UnwindSafe for HclCompatNvramQuirks
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