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 <hi@alyssa.is>
This commit is contained in:
Alyssa Ross 2023-07-10 19:44:01 +00:00 committed by Bo Chen
parent 953c238544
commit f346687e3d

View File

@ -595,6 +595,7 @@ pub struct VmConfig {
#[serde(default)]
pub watchdog: bool,
#[cfg(feature = "guest_debug")]
#[serde(default)]
pub gdb: bool,
pub platform: Option<PlatformConfig>,
pub tpm: Option<TpmConfig>,