From e0c0d0e1427c5fd52b7c42f2d59e67407abec937 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 13 Apr 2021 11:26:14 +0100 Subject: [PATCH] vmm: config: Validate network configuration Signed-off-by: Rob Bradford --- vmm/src/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/vmm/src/config.rs b/vmm/src/config.rs index 714230564..36ddfc2c0 100644 --- a/vmm/src/config.rs +++ b/vmm/src/config.rs @@ -1715,6 +1715,7 @@ impl VmConfig { if net.vhost_user && !self.memory.shared { return Err(ValidationError::VhostUserRequiresSharedMemory); } + net.validate()?; } }