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:
Sebastien Boeuf 2022-04-01 17:54:25 +02:00 committed by Rob Bradford
parent 70222ffc1a
commit 00ce8277aa

View File

@ -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;
}