pub struct OpenHclConfig {
pub vtl2_nvme_boot: bool,
pub vmbus_redirect: bool,
pub custom_command_line: Option<String>,
pub log_levels: OpenvmmLogConfig,
pub vtl2_base_address_type: Option<Vtl2BaseAddressType>,
pub modify_vtl2_settings: Option<ModifyFn<Vtl2Settings>>,
}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
custom_command_line: Option<String>Test-specified command-line parameters to append to the petri generated
command line and pass to OpenHCL. VM backends should use
OpenHclConfig::command_line() rather than reading this directly.
log_levels: OpenvmmLogConfigCommand 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.
modify_vtl2_settings: Option<ModifyFn<Vtl2Settings>>Optional manual modification of the VTL2 settings
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.