From f346687e3d0426b45645a63f215fe9d0c4e79202 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 10 Jul 2023 19:44:01 +0000 Subject: [PATCH] vmm: default GDB to false when deserializing This fixes the valid VM config unit tests, which would otherwise fail to deserialize their expected JSON config due to the missing "gdb" field. Signed-off-by: Alyssa Ross --- vmm/src/vm_config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/vmm/src/vm_config.rs b/vmm/src/vm_config.rs index b034ef1fd..a51add7bd 100644 --- a/vmm/src/vm_config.rs +++ b/vmm/src/vm_config.rs @@ -595,6 +595,7 @@ pub struct VmConfig { #[serde(default)] pub watchdog: bool, #[cfg(feature = "guest_debug")] + #[serde(default)] pub gdb: bool, pub platform: Option, pub tpm: Option,