From 6d30fe05e4febd930d91bb36294f0219faf2254c Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Tue, 29 Sep 2020 15:55:28 -0700 Subject: [PATCH] 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 --- vmm/src/api/openapi/cloud-hypervisor.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vmm/src/api/openapi/cloud-hypervisor.yaml b/vmm/src/api/openapi/cloud-hypervisor.yaml index 7d6194446..240e02e27 100644 --- a/vmm/src/api/openapi/cloud-hypervisor.yaml +++ b/vmm/src/api/openapi/cloud-hypervisor.yaml @@ -811,6 +811,11 @@ components: properties: path: type: string + iommu: + type: boolean + default: false + id: + type: string VmRemoveDevice: type: object