mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-02 11:35:46 +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 {
|
if let Some(balloon) = &self.balloon {
|
||||||
let mut ram_size = self.memory.size;
|
let mut ram_size = self.memory.size;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user