vmm: config: Validate network configuration

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2021-04-13 11:26:14 +01:00 committed by Sebastien Boeuf
parent 37a2c13a90
commit e0c0d0e142

View File

@ -1715,6 +1715,7 @@ impl VmConfig {
if net.vhost_user && !self.memory.shared {
return Err(ValidationError::VhostUserRequiresSharedMemory);
}
net.validate()?;
}
}