diff --git a/misc/config_tools/static_allocators/board_capability.py b/misc/config_tools/static_allocators/board_capability.py
new file mode 100644
index 000000000..5a98f472d
--- /dev/null
+++ b/misc/config_tools/static_allocators/board_capability.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python3
+#
+# Copyright (C) 2021 Intel Corporation.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+import common
+
+def fn(board_etree, scenario_etree, allocation_etree):
+ pci_bus_nums = board_etree.xpath("//bus[@type='pci']/@address")
+ common.append_node("/acrn-config/platform/MAX_PCI_BUS_NUM", hex(max(map(lambda x: int(x, 16), pci_bus_nums)) + 1), allocation_etree)
diff --git a/misc/config_tools/xforms/config.h.xsl b/misc/config_tools/xforms/config.h.xsl
index e4cd0cca5..bab5d7cc4 100644
--- a/misc/config_tools/xforms/config.h.xsl
+++ b/misc/config_tools/xforms/config.h.xsl
@@ -26,11 +26,20 @@
+
- #define CONFIG_
+ #define
+
+
+
+
+
+ CONFIG_
+
+
diff --git a/misc/config_tools/xforms/config.mk.xsl b/misc/config_tools/xforms/config.mk.xsl
index 6ebf6e80c..3620ce9aa 100644
--- a/misc/config_tools/xforms/config.mk.xsl
+++ b/misc/config_tools/xforms/config.mk.xsl
@@ -21,11 +21,19 @@
+
- CONFIG_
+
+
+
+
+
+ CONFIG_
+
+
=
diff --git a/misc/config_tools/xforms/config_common.xsl b/misc/config_tools/xforms/config_common.xsl
index 22fe7d88b..700b202d3 100644
--- a/misc/config_tools/xforms/config_common.xsl
+++ b/misc/config_tools/xforms/config_common.xsl
@@ -151,8 +151,10 @@
-
-
+
+
+
+
@@ -314,6 +316,7 @@
+
@@ -321,18 +324,21 @@
+
+
+