acrn-hypervisor/misc/config_tools/static_allocators
Junjie Mao 4c04857681 config_tools: fix formatting of configured INTx allocation
There could be multiple ways in the scenario configuration to specify that
no INTx allocation is explicitly allocation to a prelaunched VM:

  * Do not have a `pt_intx` node at all.

  * Have a `pt_intx` node with no text.

  * Have a `pt_intx` node with a text that has nothing but whitespaces,
    tabs and newlines.

The current implementation only supports the first way, and will cause
build-time failures when a scenario configuration uses the latter two. The
following changes are introduced by this patch to fix such errors.

  * The INTx static allocator queries the text() of `pt_intx` nodes
    directly to gracefully handle `pt_intx` nodes with no text.

  * The XSLT of pt_intx.c clears all kinds of white spaces from the text of
    `pt_intx` nodes before calculating the set of allocated INTx mappings.

Tracked-On: #6287
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
2021-08-12 08:56:56 +08:00
..
lib config_tools: abstract BusDevFunc to the common library module 2021-08-09 09:05:01 +08:00
bdf.py config_tools: abstract BusDevFunc to the common library module 2021-08-09 09:05:01 +08:00
cpu_affinity.py config-tools: add cpu affinity static allocator 2021-05-07 14:39:08 +08:00
gpa.py config-tools: allocate log area start address 2021-08-11 14:45:55 +08:00
hv_ram.py config-tools: refine append_node and add get_node 2021-05-07 14:39:08 +08:00
intx.py config_tools: fix formatting of configured INTx allocation 2021-08-12 08:56:56 +08:00
main.py
pio.py config-tools: add pio static allocator 2021-05-07 14:39:08 +08:00