acrn-config: fix the bug of resolved nested mmio address

Multiple devices could be nested under the same range. Skip remove if
the device is removed already

Tracked-On: #5437
Signed-off-by: Yang,Yu-chu <yu-chu.yang@intel.com>
This commit is contained in:
Yang,Yu-chu 2020-10-29 15:57:37 -07:00 committed by wenlingz
parent 5646b218ff
commit 8e545734d4

View File

@ -165,6 +165,8 @@ def removed_nested(list1, list2):
for w1 in resolvedList:
for w2 in list2:
if w2.start <= w1.start <= w2.end and w2.start <= w1.end <= w2.end:
if w1 not in resolvedList:
continue
resolvedList.remove(w1)
return sorted(resolvedList)