acrn-hypervisor/misc/config_tools/board_config
Li Fei1 04a104e856 hv: page: use dynamic page allocation for pagetable mapping
For FuSa's case, we remove all dynamic memory allocation use in ACRN HV. Instead,
we use static memory allocation or embedded data structure. For pagetable page,
we prefer to use an index (hva for MMU, gpa for EPT) to get a page from a special
page pool. The special page pool should be big enougn for each possible index.
This is not a big problem when we don't support 64 bits MMIO. Without 64 bits MMIO
support, we could use the index to search addrss not larger than DRAM_SIZE + 4G.

However, if ACRN plan to support 64 bits MMIO in SOS, we could not use the static
memory alocation any more. This is because there's a very huge hole between the
top DRAM address and the bottom 64 bits MMIO address. We could not reserve such
many pages for pagetable mapping as the CPU physical address bits may very large.

This patch will use dynamic page allocation for pagetable mapping. We also need
reserve a big enough page pool at first. For HV MMU, we don't use 4K granularity
page table mapping, we need reserve PML4, PDPT and PD pages according the maximum
physical address space (PPT va and pa are identical mapping); For each VM EPT,
we reserve PML4, PDPT and PD pages according to the maximum physical address space
too, (the EPT address sapce can't beyond the physical address space), and we reserve
PT pages by real use cases of DRAM, low MMIO and high MMIO.

Signed-off-by: Li Fei1 <fei1.li@intel.com>
Tracked-On: #5788
2021-03-11 12:36:17 +08:00
..
acpi_platform_h.py acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
board_c.py acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
board_cfg_gen.py acrn-config: Update generated configuration source code 2021-02-02 16:53:56 +08:00
board_info_h.py acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
misc_cfg_h.py config-tool: refine software SRAM config of pre-RTVM 2021-02-25 13:21:41 +08:00
pci_devices_h.py acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
README acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
vbar_base_h.py hv: page: use dynamic page allocation for pagetable mapping 2021-03-11 12:36:17 +08:00

Please run board_cfg_gen.py to generate board related configuration files.

usage: python3 board_cfg_gen.py [h] --board <board_info_file> --scenario <scenario_info_file>
positional arguments:
  board_info_file  : file name of the board info XML
  scenario_info_file  : file name of the scenario info XML