MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / vm_add_device

Method vm_add_device

vmm/src/api/dbus/mod.rs:132–135  ·  view source on GitHub ↗
(&self, device_config: String)

Source from the content-addressed store, hash-verified

130 }
131
132 async fn vm_add_device(&self, device_config: String) -> Result<Optional<String>> {
133 let device_config = serde_json::from_str(&device_config).map_err(api_error)?;
134 self.vm_action(&VmAddDevice, device_config).await
135 }
136
137 async fn vm_add_disk(&self, disk_config: String) -> Result<Optional<String>> {
138 let disk_config = serde_json::from_str(&disk_config).map_err(api_error)?;

Callers 1

requestMethod · 0.45

Calls 1

vm_actionMethod · 0.80

Tested by

no test coverage detected