mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-13 13:56:19 +00:00
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:
parent
5646b218ff
commit
8e545734d4
@ -165,6 +165,8 @@ def removed_nested(list1, list2):
|
|||||||
for w1 in resolvedList:
|
for w1 in resolvedList:
|
||||||
for w2 in list2:
|
for w2 in list2:
|
||||||
if w2.start <= w1.start <= w2.end and w2.start <= w1.end <= w2.end:
|
if w2.start <= w1.start <= w2.end and w2.start <= w1.end <= w2.end:
|
||||||
|
if w1 not in resolvedList:
|
||||||
|
continue
|
||||||
resolvedList.remove(w1)
|
resolvedList.remove(w1)
|
||||||
return sorted(resolvedList)
|
return sorted(resolvedList)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user