diff --git a/vmm/src/api/openapi/cloud-hypervisor.yaml b/vmm/src/api/openapi/cloud-hypervisor.yaml index e8d3350db..14f74018e 100644 --- a/vmm/src/api/openapi/cloud-hypervisor.yaml +++ b/vmm/src/api/openapi/cloud-hypervisor.yaml @@ -1369,6 +1369,15 @@ components: receiver_url: type: string + TimeoutStrategy: + type: string + enum: ["Cancel", "Ignore"] + default: "Cancel" + description: > + The strategy to apply when the migration timeout is reached. + Cancel will abort the migration and keep the VM running on the source. + Ignore will proceed with the migration regardless of the downtime requirement. + SendMigrationData: required: - destination_url @@ -1378,6 +1387,24 @@ components: type: string local: type: boolean + downtime_ms: + type: integer + format: int64 + minimum: 1 + default: 300 + description: > + The maximum downtime the migration aims for, in milliseconds. + Defaults to 300ms. + timeout_s: + type: integer + format: int64 + minimum: 1 + default: 3600 + description: > + The timeout for the migration (maximum total duration), in seconds. + Defaults to 3600s (one hour). + timeout_strategy: + $ref: "#/components/schemas/TimeoutStrategy" VmAddUserDevice: required: