mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-20 07:58:55 +00:00
vmm: config: Validate network configuration
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
37a2c13a90
commit
e0c0d0e142
@ -1715,6 +1715,7 @@ impl VmConfig {
|
||||
if net.vhost_user && !self.memory.shared {
|
||||
return Err(ValidationError::VhostUserRequiresSharedMemory);
|
||||
}
|
||||
net.validate()?;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user