vmm: Enable HTTP response for PCI device hotplug

This patch completes the series by connecting the dots between the HTTP
frontend and the device manager backend.

Any request to hotplug a VFIO, disk, fs, pmem, net, or vsock device will
now return a response including the device name and the place of the
device in the PCI topology.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2020-06-11 17:40:27 +02:00
committed by Rob Bradford
parent 3316348d4c
commit 83cd9969df
3 changed files with 60 additions and 65 deletions

View File

@@ -209,6 +209,9 @@ pub enum Error {
/// No more that one virtio-vsock device
TooManyVsockDevices,
/// Failed serializing into JSON
SerializeJson(serde_json::Error),
}
pub type Result<T> = result::Result<T, Error>;