summary refs log tree commit diff
path: root/host/start-vmm/ch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'host/start-vmm/ch.rs')
-rw-r--r--host/start-vmm/ch.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/host/start-vmm/ch.rs b/host/start-vmm/ch.rs
index cc05d84..9fa58a3 100644
--- a/host/start-vmm/ch.rs
+++ b/host/start-vmm/ch.rs
@@ -33,7 +33,7 @@ pub struct DiskConfig {
 #[derive(Serialize)]
 pub struct FsConfig {
     pub socket: String,
-    pub tag: String,
+    pub tag: &'static str,
 }
 
 #[derive(Serialize)]
@@ -61,15 +61,22 @@ pub struct PayloadConfig {
 }
 
 #[derive(Serialize)]
+pub struct VsockConfig {
+    pub cid: u32,
+    pub socket: &'static str,
+}
+
+#[derive(Serialize)]
 pub struct VmConfig {
     pub console: ConsoleConfig,
     pub disks: Vec<DiskConfig>,
-    pub fs: Vec<FsConfig>,
+    pub fs: [FsConfig; 1],
     pub gpu: Vec<GpuConfig>,
     pub memory: MemoryConfig,
     pub net: Vec<NetConfig>,
     pub payload: PayloadConfig,
     pub serial: ConsoleConfig,
+    pub vsock: VsockConfig,
 }
 
 fn command(vm_name: &str, s: impl AsRef<OsStr>) -> Command {