vmm: add HTTP API endpoints for generic vhost-user

This includes OpenAPI schemas.

Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
This commit is contained in:
Demi Marie Obenour
2026-02-04 09:34:50 -05:00
committed by Rob Bradford
parent d510f11a50
commit df86b2864b
4 changed files with 68 additions and 8 deletions

View File

@@ -168,6 +168,7 @@ impl RequestHandler for StubApiRequestHandler {
},
balloon: None,
fs: None,
generic_vhost_user: None,
pmem: None,
serial: ConsoleConfig {
file: None,
@@ -254,6 +255,13 @@ impl RequestHandler for StubApiRequestHandler {
Ok(None)
}
fn vm_add_generic_vhost_user(
&mut self,
_: GenericVhostUserConfig,
) -> Result<Option<Vec<u8>>, VmError> {
Ok(None)
}
fn vm_add_pmem(&mut self, _: PmemConfig) -> Result<Option<Vec<u8>>, VmError> {
Ok(None)
}