mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 03:12:27 +00:00
Adjust the code to comply better with the virtio-mem specification by adding some validation for the virtio-mem configuration, but also by updating the virtio-mem configuration itself. Nowhere in the virtio-mem specification is stated the usable region size must be adjusted everytime the plugged size changes. For simplification reason, and without going against the specification, the usable region size is now kept static, setting its value to the size of the whole region. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>