[][src]Struct crosvm::Config

pub struct Config {
    pub vcpu_count: Option<u32>,
    pub vcpu_affinity: Vec<usize>,
    pub memory: Option<u64>,
    pub executable_path: Option<Executable>,
    pub android_fstab: Option<PathBuf>,
    pub initrd_path: Option<PathBuf>,
    pub params: Vec<String>,
    pub socket_path: Option<PathBuf>,
    pub plugin_root: Option<PathBuf>,
    pub plugin_mounts: Vec<BindMount>,
    pub plugin_gid_maps: Vec<GidMap>,
    pub disks: Vec<DiskOption>,
    pub pmem_devices: Vec<DiskOption>,
    pub host_ip: Option<Ipv4Addr>,
    pub netmask: Option<Ipv4Addr>,
    pub mac_address: Option<MacAddress>,
    pub vhost_net: bool,
    pub tap_fd: Vec<RawFd>,
    pub cid: Option<u64>,
    pub wayland_socket_paths: BTreeMap<String, PathBuf>,
    pub wayland_dmabuf: bool,
    pub x_display: Option<String>,
    pub shared_dirs: Vec<SharedDir>,
    pub sandbox: bool,
    pub seccomp_policy_dir: PathBuf,
    pub seccomp_log_failures: bool,
    pub software_tpm: bool,
    pub cras_audio: bool,
    pub cras_capture: bool,
    pub null_audio: bool,
    pub display_window_keyboard: bool,
    pub display_window_mouse: bool,
    pub serial_parameters: BTreeMap<u8, SerialParameters>,
    pub syslog_tag: Option<String>,
    pub virtio_single_touch: Option<TouchDeviceOption>,
    pub virtio_trackpad: Option<TouchDeviceOption>,
    pub virtio_mouse: Option<PathBuf>,
    pub virtio_keyboard: Option<PathBuf>,
    pub virtio_input_evdevs: Vec<PathBuf>,
    pub split_irqchip: bool,
    pub vfio: Option<PathBuf>,
}

Aggregate of all configurable options for a running VM.

Fields

vcpu_count: Option<u32>vcpu_affinity: Vec<usize>memory: Option<u64>executable_path: Option<Executable>android_fstab: Option<PathBuf>initrd_path: Option<PathBuf>params: Vec<String>socket_path: Option<PathBuf>plugin_root: Option<PathBuf>plugin_mounts: Vec<BindMount>plugin_gid_maps: Vec<GidMap>disks: Vec<DiskOption>pmem_devices: Vec<DiskOption>host_ip: Option<Ipv4Addr>netmask: Option<Ipv4Addr>mac_address: Option<MacAddress>vhost_net: booltap_fd: Vec<RawFd>cid: Option<u64>wayland_socket_paths: BTreeMap<String, PathBuf>wayland_dmabuf: boolx_display: Option<String>shared_dirs: Vec<SharedDir>sandbox: boolseccomp_policy_dir: PathBufseccomp_log_failures: boolsoftware_tpm: boolcras_audio: boolcras_capture: boolnull_audio: booldisplay_window_keyboard: booldisplay_window_mouse: boolserial_parameters: BTreeMap<u8, SerialParameters>syslog_tag: Option<String>virtio_single_touch: Option<TouchDeviceOption>virtio_trackpad: Option<TouchDeviceOption>virtio_mouse: Option<PathBuf>virtio_keyboard: Option<PathBuf>virtio_input_evdevs: Vec<PathBuf>split_irqchip: boolvfio: Option<PathBuf>

Trait Implementations

impl Default for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.