From 6fd98728d4668505ce3a84360fe0403f8e130386 Mon Sep 17 00:00:00 2001 From: leo03164 Date: Mon, 3 Aug 2026 17:22:50 +0800 Subject: [PATCH] openapi: Add missing BreakPoint variant to VmState The VmState enum in vmm/src/vm.rs has five variants (Created, Running, Shutdown, Paused, BreakPoint) but the OpenAPI document only lists four. BreakPoint is observable through vm.info when a guest_debug build is paused by the GDB stub (Vm::debug_pause). Clients generated with strict enum handling (e.g. via openapi-generator) fail to deserialize the vm.info response in that state. The document already covers guest_debug-gated surface such as /vm.coredump, so the enum should be complete as well. Signed-off-by: leo03164 --- vmm/src/api/openapi/cloud-hypervisor.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmm/src/api/openapi/cloud-hypervisor.yaml b/vmm/src/api/openapi/cloud-hypervisor.yaml index 9f4307fe6..8a034b095 100644 --- a/vmm/src/api/openapi/cloud-hypervisor.yaml +++ b/vmm/src/api/openapi/cloud-hypervisor.yaml @@ -582,7 +582,7 @@ components: VmState: type: string - enum: [Created, Running, Shutdown, Paused] + enum: [Created, Running, Shutdown, Paused, BreakPoint] VmInfo: required: