mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-11-04 19:11:11 +00:00
vmm: tdx: Only report TempMem as reserved memory
Based on latest QEMU patches from branch tdx-qemu-2022.03.29-v7.0.0-rc1 we should only report as memory resources the TempMem sections from TDVF sections. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
dae77d8d43
commit
70222ffc1a
@ -1829,9 +1829,7 @@ impl Vm {
|
||||
let mut hob = TdHob::start(hob_offset.unwrap());
|
||||
|
||||
let mut sorted_sections = sections.to_vec();
|
||||
sorted_sections.retain(|section| {
|
||||
!matches!(section.r#type, TdvfSectionType::Bfv | TdvfSectionType::Cfv)
|
||||
});
|
||||
sorted_sections.retain(|section| matches!(section.r#type, TdvfSectionType::TempMem));
|
||||
|
||||
sorted_sections.sort_by_key(|section| section.address);
|
||||
sorted_sections.reverse();
|
||||
|
Loading…
Reference in New Issue
Block a user