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:
Rui Chang 2023-11-16 11:25:47 +08:00 committed by Rob Bradford
parent 57ee9b4f9c
commit 2b457584e0

View File

@ -347,6 +347,28 @@ paths:
500:
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:
put:
summary: Returns a VM snapshot.
@ -1156,3 +1178,11 @@ components:
type: string
local:
type: boolean
VmAddUserDevice:
required:
- socket
type: object
properties:
socket:
type: string