From 55479a64d237d4c757dba19a696abefd27ec74fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Thu, 10 Feb 2022 10:50:08 +0100 Subject: [PATCH] openapi: Expose TDx configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TDx support is already present on the project for quite some time, but the TDx configuration was not yet exposed to the ones using CH via the OpenAPI auto generated code. Signed-off-by: Fabiano FidĂȘncio --- vmm/src/api/openapi/cloud-hypervisor.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vmm/src/api/openapi/cloud-hypervisor.yaml b/vmm/src/api/openapi/cloud-hypervisor.yaml index 6ef576f43..c4dcae04c 100644 --- a/vmm/src/api/openapi/cloud-hypervisor.yaml +++ b/vmm/src/api/openapi/cloud-hypervisor.yaml @@ -500,6 +500,8 @@ components: type: array items: $ref: '#/components/schemas/SgxEpcConfig' + tdx: + $ref: '#/components/schemas/TdxConfig' numa: type: array items: @@ -946,6 +948,15 @@ components: type: boolean default: false + TdxConfig: + required: + - firmware + type: object + properties: + firmware: + type: string + description: Path to the firmware that will be used to boot the TDx guest up. + NumaDistance: required: - destination