mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-09 00:24:22 +01:00
The changes involve: - Expose VhostUserConfig struct to runtime-rs. - Set a default value while num_queues or queue_size are 0. Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com>
38 lines
1.1 KiB
Rust
38 lines
1.1 KiB
Rust
// Copyright (C) 2019-2022 Alibaba Cloud. All rights reserved.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
//! API Version 1 related data structures to configure the vmm.
|
|
|
|
mod vmm_action;
|
|
pub use self::vmm_action::*;
|
|
|
|
/// Wrapper for configuring the microVM boot source.
|
|
mod boot_source;
|
|
pub use self::boot_source::{BootSourceConfig, BootSourceConfigError, DEFAULT_KERNEL_CMDLINE};
|
|
|
|
/// Wrapper over the microVM general information.
|
|
mod instance_info;
|
|
pub use self::instance_info::{InstanceInfo, InstanceState};
|
|
|
|
/// Wrapper for configuring the memory and CPU of the microVM.
|
|
mod machine_config;
|
|
pub use self::machine_config::{VmConfigError, MAX_SUPPORTED_VCPUS};
|
|
|
|
/// Wrapper for configuring the virtio networking
|
|
#[cfg(any(
|
|
feature = "virtio-net",
|
|
feature = "vhost-net",
|
|
feature = "vhost-user-net"
|
|
))]
|
|
mod virtio_net;
|
|
#[cfg(any(feature = "virtio-net", feature = "vhost-net"))]
|
|
pub use virtio_net::VirtioConfig;
|
|
#[cfg(any(
|
|
feature = "virtio-net",
|
|
feature = "vhost-net",
|
|
feature = "vhost-user-net"
|
|
))]
|
|
pub use virtio_net::{
|
|
Backend, NetworkInterfaceConfig, NetworkInterfaceUpdateConfig, VhostUserConfig,
|
|
};
|