mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
vmm: tdx: Fix the logic for generating HOB memory resources
The list of memory resources provided through the HOB wasn't accurate because of the broken logic. The fix provides correct ranges to the firmware. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
70222ffc1a
commit
00ce8277aa
@ -1865,6 +1865,10 @@ impl Vm {
|
||||
|
||||
next_start_addr = start + size;
|
||||
|
||||
if region_start > next_start_addr {
|
||||
next_start_addr = region_start;
|
||||
}
|
||||
|
||||
if next_start_addr > region_end {
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user