From 8e545734d440dd2e7e3ecb9d67f7968bf310820d Mon Sep 17 00:00:00 2001 From: "Yang,Yu-chu" Date: Thu, 29 Oct 2020 15:57:37 -0700 Subject: [PATCH] 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 --- misc/acrn-config/board_config/vbar_base_h.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/acrn-config/board_config/vbar_base_h.py b/misc/acrn-config/board_config/vbar_base_h.py index ca5546ac7..fe0ea9f51 100644 --- a/misc/acrn-config/board_config/vbar_base_h.py +++ b/misc/acrn-config/board_config/vbar_base_h.py @@ -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)