vmm: api: Introduce new "add-device" HTTP endpoint

This commit introduces the new command "add-device" that will let a user
hotplug a VFIO PCI device to an already running VM.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2020-02-27 14:00:46 +01:00
committed by Rob Bradford
parent 0f1396acef
commit 0e58741a09
7 changed files with 134 additions and 4 deletions

View File

@@ -1585,6 +1585,10 @@ impl DeviceManager {
#[cfg(not(feature = "acpi"))]
return Ok(());
}
pub fn add_device(&self, _path: String) -> DeviceManagerResult<()> {
Ok(())
}
}
#[cfg(feature = "acpi")]