vmm: config: Validate vDPA devices in configuration

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2022-03-18 16:29:25 +00:00
parent 3b8a017257
commit 54b65107b1

View File

@ -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;