vmm: Add hotplugged_size to VirtioMemZone

Adding a new field to VirtioMemZone structure, as it lets us associate
with a particular virtio-mem region the amount of memory that should be
plugged in at boot.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2020-09-14 22:36:58 +02:00
parent 3faf8605f3
commit de2b917f55
2 changed files with 6 additions and 1 deletions

View File

@@ -2449,7 +2449,7 @@ impl DeviceManager {
.map_err(DeviceManagerError::TryCloneVirtioMemResize)?,
self.seccomp_action.clone(),
node_id,
0,
virtio_mem_zone.hotplugged_size(),
)
.map_err(DeviceManagerError::CreateVirtioMem)?,
));