Merge pull request #5567 from openanolis/chao/fix_mem_file_path_error

Dragonball: enable mem_file_path config into hugetlbfs process
This commit is contained in:
Zhongtao Hu 2022-11-08 09:00:13 +08:00 committed by GitHub
commit 351bdbfacd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -520,6 +520,7 @@ impl Vm {
let mem_type = self.vm_config.mem_type.clone();
let mut mem_file_path = String::from("");
if mem_type == "hugetlbfs" {
mem_file_path = self.vm_config.mem_file_path.clone();
let shared_info = self.shared_info.read()
.expect("Failed to determine if instance is initialized because shared info couldn't be read due to poisoned lock");
mem_file_path.push_str("/dragonball/");