mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 23:04:20 +01:00
runtime-rs: bring hybridVsock devices in manager.
Currently, virtio_vsock are still outside of the device manager. This causes some management issues,such as the inability to unify PCI address management. Just do some work for hybrid vsock. Fixes: #7655 Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
This commit is contained in:
1
src/libs/Cargo.lock
generated
1
src/libs/Cargo.lock
generated
@@ -1123,6 +1123,7 @@ dependencies = [
|
||||
"anyhow",
|
||||
"hyper",
|
||||
"hyperlocal",
|
||||
"kata-types",
|
||||
"tokio",
|
||||
]
|
||||
|
||||
|
||||
@@ -34,6 +34,9 @@ pub use self::runtime::{Runtime, RuntimeVendor, RUNTIME_NAME_VIRTCONTAINER};
|
||||
|
||||
pub use self::agent::AGENT_NAME_KATA;
|
||||
|
||||
/// kata run dir
|
||||
pub const KATA_PATH: &str = "/run/kata";
|
||||
|
||||
// TODO: let agent use the constants here for consistency
|
||||
/// Debug console enabled flag for agent
|
||||
pub const DEBUG_CONSOLE_FLAG: &str = "agent.debug_console";
|
||||
|
||||
@@ -16,3 +16,4 @@ anyhow = "^1.0"
|
||||
tokio = { version = "1.8.0", features = ["rt-multi-thread"] }
|
||||
hyper = { version = "0.14.20", features = ["stream", "server", "http1"] }
|
||||
hyperlocal = "0.8"
|
||||
kata-types = { path = "../kata-types" }
|
||||
|
||||
@@ -21,7 +21,8 @@ use anyhow::{anyhow, Result};
|
||||
|
||||
pub mod shim_mgmt;
|
||||
|
||||
pub const KATA_PATH: &str = "/run/kata";
|
||||
use kata_types::config::KATA_PATH;
|
||||
|
||||
pub const SHIM_MGMT_SOCK_NAME: &str = "shim-monitor.sock";
|
||||
|
||||
// return sandbox's storage path
|
||||
|
||||
Reference in New Issue
Block a user