From 57184f110a016149dce97d9bb1be306786653e88 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 11 Feb 2022 09:43:12 +0000 Subject: [PATCH] openapi: Add PlatformConfig to OpenAPI spec Signed-off-by: Rob Bradford --- vmm/src/api/openapi/cloud-hypervisor.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/vmm/src/api/openapi/cloud-hypervisor.yaml b/vmm/src/api/openapi/cloud-hypervisor.yaml index 6bb8e989b..6ef576f43 100644 --- a/vmm/src/api/openapi/cloud-hypervisor.yaml +++ b/vmm/src/api/openapi/cloud-hypervisor.yaml @@ -510,6 +510,8 @@ components: watchdog: type: boolean default: false + platform: + $ref: '#/components/schemas/PlatformConfig' description: Virtual machine configuration CpuAffinity: @@ -557,6 +559,18 @@ components: items: $ref: '#/components/schemas/CpuAffinity' + PlatformConfig: + type: object + properties: + num_pci_segments: + type: integer + format: int16 + iommu_segments: + type: array + items: + type: integer + format: int16 + MemoryZoneConfig: required: - id