vmm: Add virtio-balloon support

This commit adds new option balloon to memory config.
Set it to on will open the balloon function.

Signed-off-by: Hui Zhu <teawater@antfin.com>
This commit is contained in:
Hui Zhu
2020-03-20 11:43:37 +08:00
committed by Rob Bradford
parent 0d72aa782f
commit 8b6b97b86f
4 changed files with 79 additions and 1 deletions

View File

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