pub struct OpenHclConfig {
pub vtl2_nvme_boot: bool,
pub vmbus_redirect: bool,
pub command_line: Option<String>,
pub log_levels: OpenHclLogConfig,
pub vtl2_base_address_type: Option<Vtl2BaseAddressType>,
}Expand description
OpenHCL configuration
Fields§
§vtl2_nvme_boot: boolEmulate SCSI via NVME to VTL2, with the provided namespace ID on
the controller with BOOT_NVME_INSTANCE.
vmbus_redirect: boolWhether to enable VMBus redirection
command_line: Option<String>Test-specified command-line parameters to pass to OpenHCL. VM backends
should use OpenHclConfig::command_line() rather than reading this
directly.
log_levels: OpenHclLogConfigCommand line parameters that control OpenHCL logging behavior. Separate
from command_line so that petri can decide to use default log
levels.
vtl2_base_address_type: Option<Vtl2BaseAddressType>How to place VTL2 in address space. If None, the backend VMM
will decide on default behavior.
Implementations§
Source§impl OpenHclConfig
impl OpenHclConfig
Sourcepub fn command_line(&self) -> String
pub fn command_line(&self) -> String
Returns the command line to pass to OpenHCL based on these parameters. Aggregates the command line and log levels.
Trait Implementations§
Source§impl Clone for OpenHclConfig
impl Clone for OpenHclConfig
Source§fn clone(&self) -> OpenHclConfig
fn clone(&self) -> OpenHclConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenHclConfig
impl Debug for OpenHclConfig
Auto Trait Implementations§
impl Freeze for OpenHclConfig
impl RefUnwindSafe for OpenHclConfig
impl Send for OpenHclConfig
impl Sync for OpenHclConfig
impl Unpin for OpenHclConfig
impl UnwindSafe for OpenHclConfig
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