virtio-balloon: Store the balloon size to support reboot

This commit store balloon size to MemoryConfig.
After reboot, virtio-balloon can use this size to inflate back to
the size before reboot.

Signed-off-by: Hui Zhu <teawater@antfin.com>
This commit is contained in:
Hui Zhu
2020-06-23 17:52:30 +08:00
committed by Rob Bradford
parent 50da100afd
commit 800220acbb
6 changed files with 24 additions and 12 deletions

View File

@@ -503,6 +503,7 @@ mod unit_tests {
shared: false,
hugepages: false,
balloon: false,
balloon_size: 0,
},
kernel: Some(KernelConfig {
path: PathBuf::from("/path/to/kernel"),