mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
vmm: add add-user-device support in cloud-hypervisor.yaml
The change is missed when add "add-user-device" support in
53b2e19934
, use this commit to fix it.
Signed-off-by: Rui Chang <rui.chang@arm.com>
This commit is contained in:
parent
57ee9b4f9c
commit
2b457584e0
@ -347,6 +347,28 @@ paths:
|
|||||||
500:
|
500:
|
||||||
description: The new vDPA device could not be added to the VM instance.
|
description: The new vDPA device could not be added to the VM instance.
|
||||||
|
|
||||||
|
/vm.add-user-device:
|
||||||
|
put:
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/VmAddUserDevice'
|
||||||
|
description: The path of the new device
|
||||||
|
required: true
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/PciDeviceInfo'
|
||||||
|
description: The new device was successfully added to the VM instance.
|
||||||
|
"204":
|
||||||
|
description: The new device was successfully (cold) added to the VM instance.
|
||||||
|
"404":
|
||||||
|
description: The new device could not be added to the VM instance.
|
||||||
|
summary: Add a new userspace device to the VM
|
||||||
|
|
||||||
/vm.snapshot:
|
/vm.snapshot:
|
||||||
put:
|
put:
|
||||||
summary: Returns a VM snapshot.
|
summary: Returns a VM snapshot.
|
||||||
@ -1156,3 +1178,11 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
local:
|
local:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
|
VmAddUserDevice:
|
||||||
|
required:
|
||||||
|
- socket
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
socket:
|
||||||
|
type: string
|
||||||
|
Loading…
Reference in New Issue
Block a user