mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
d510f11a50
commit
df86b2864b
@@ -277,6 +277,28 @@ paths:
|
||||
500:
|
||||
description: The new device could not be added to the VM instance.
|
||||
|
||||
/vm.add-generic-vhost-user:
|
||||
put:
|
||||
summary: Add a new generic vhost-user device to the VM
|
||||
requestBody:
|
||||
description: The details of the new generic vhost-user device
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/GenericVhostUserConfig"
|
||||
required: true
|
||||
responses:
|
||||
200:
|
||||
description: The new device was successfully added to the VM instance.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/PciDeviceInfo"
|
||||
204:
|
||||
description: The new device was successfully (cold) added to the VM instance.
|
||||
500:
|
||||
description: The new device could not be added to the VM instance.
|
||||
|
||||
/vm.add-pmem:
|
||||
put:
|
||||
summary: Add a new pmem device to the VM
|
||||
@@ -603,6 +625,10 @@ components:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/FsConfig"
|
||||
generic-vhost-user:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/GenericVhostUserConfig"
|
||||
pmem:
|
||||
type: array
|
||||
items:
|
||||
@@ -1057,6 +1083,26 @@ components:
|
||||
id:
|
||||
type: string
|
||||
|
||||
GenericVhostUserConfig:
|
||||
required:
|
||||
- queue_sizes
|
||||
- socket
|
||||
- tag
|
||||
- virtio_id
|
||||
type: object
|
||||
properties:
|
||||
socket:
|
||||
type: string
|
||||
queue_size:
|
||||
type: array
|
||||
items:
|
||||
type: uint16
|
||||
pci_segment:
|
||||
type: integer
|
||||
format: int16
|
||||
virtio_id:
|
||||
type: uint32
|
||||
|
||||
PmemConfig:
|
||||
required:
|
||||
- file
|
||||
|
||||
Reference in New Issue
Block a user