mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
vmm: config: Validate vDPA devices in configuration
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
3b8a017257
commit
54b65107b1
@ -2306,6 +2306,12 @@ impl VmConfig {
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(vdpa_devices) = &self.vdpa {
|
||||
for vdpa_device in vdpa_devices {
|
||||
vdpa_device.validate(self)?;
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(balloon) = &self.balloon {
|
||||
let mut ram_size = self.memory.size;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user