vmm: openapi: Add the 'iommu' and 'id' option to 'VmAddDevice'

This patch adds the missing the `iommu` and `id` option for
`VmAddDevice` in the openApi yaml to respect the internal data structure
in the code base. Also, setting the `id` explicitly for VFIO device
hotplug is required for VFIO device unplug through openAPI calls.

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen 2020-09-29 15:55:28 -07:00 committed by Rob Bradford
parent af0c4c1659
commit 6d30fe05e4

View File

@ -811,6 +811,11 @@ components:
properties: properties:
path: path:
type: string type: string
iommu:
type: boolean
default: false
id:
type: string
VmRemoveDevice: VmRemoveDevice:
type: object type: object