mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: api: Introduce new "remove-device" HTTP endpoint
This commit introduces the new command "remove-device" that will let a user hot-unplug a VFIO PCI device from an already running VM. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
committed by
Rob Bradford
parent
991f3bb5da
commit
6cbdb9aa47
@@ -155,6 +155,22 @@ paths:
|
||||
404:
|
||||
description: The new device could not be added to the VM instance.
|
||||
|
||||
/vm.remove-device:
|
||||
put:
|
||||
summary: Remove a device from the VM
|
||||
requestBody:
|
||||
description: The identifier of the device
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/VmRemoveDevice'
|
||||
required: true
|
||||
responses:
|
||||
204:
|
||||
description: The device was successfully removed from the VM instance.
|
||||
404:
|
||||
description: The device could not be removed from the VM instance.
|
||||
|
||||
components:
|
||||
schemas:
|
||||
|
||||
@@ -449,3 +465,9 @@ components:
|
||||
properties:
|
||||
path:
|
||||
type: string
|
||||
|
||||
VmRemoveDevice:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
|
||||
Reference in New Issue
Block a user