hw/arm/virt: Remove the lower bound of HighMem IO Regions
Get series with b4
b4 am [email protected] change-id 20250728-virt-833dafa6c11bVersions newest first
- v8 Latest5 patches 0 repliesNew
- v75 patches 4 repliesSuperseded
- v64 patches 5 repliesSuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v5 | 4 patches | 0 replies | Superseded | |
| v4 | 3 patches | 3 replies | Superseded | |
| v3 | 3 patches | 0 replies | Superseded | |
| v2 | 1 patch | 2 replies | Superseded | |
| v1 | 1 patch | 1 reply | Superseded |
Changes in v8 from the cover letter
- Updated the compatibility test and memory layout preservation to
virt-11.1.
- Stored the HighMem MMIO size in the machine instance so querying
another machine type's properties does not alter the active memory
map.
- Link to v7: https://lore.kernel.org/qemu-devel/[email protected]
Patches in v8 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | test/acpi: aarch64/virt: Test version 11.1tests/ | +24 | 0 replies | |
| 2/5 | test/acpi: aarch64/virt: Allow DSDT and MCFG changestests/ | +11 | 0 replies | |
| 3/5 | hw/arm/virt: Remove the lower bound of HighMem IO Regionshw/ include/ tests/ | +15 | 0 replies | |
| 4/5 | hw/arm/virt: Relax the lower bound of HighMem MMIO region sizedocs/ hw/ include/ | +22 | 0 replies | |
| 5/5 | test/acpi: aarch64/virt: Update golden masters for DSDT and MCFGtests/ tests/ tests/ +12 more | +0 | 0 replies |
Reviews trailers per patch
4 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Igor Mammedov | Eric Auger |
|---|---|---|
| 1/5 | R-b | |
| 2/5 | A-b | |
| 3/5 | R-b | R-b |
| 4/5 | A-b | |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v8 0/5] hw/arm/virt: Remove the lower bound of HighMem IO Regions
Remove the lower bound of the Highmem IO Regions' addresses for the latest machine version to increase the chance to fit the regions in the PA space.
The lower bound was especially problematic when using virt-install on Apple M2. virt-install 5.0.0 adds multiple pcie-root-port devices that require sufficient space in the ECAM region. However, the Highmem ECAM region did not fit in the limited PA space on the hardware, and the ECAM region size was limited to 16 MiB. If virt-install had added more than 16 devices to the root bridge, the region overflowed, which prevented edk2-stable202505 from scanning PCI devices, including the boot disk, causing boot failures.
Ideally, a virtual machine with more than 16 devices added to the root bridge should just work so that users and management layers do not have to care whether they use constrained hardware.
The base address of the Highmem IO Regions was fixed when commit f90747c4e8fb ("hw/arm/virt: GICv3 DT node with one or two redistributor regions") added the first Highmem IO Region. Later, commit 957e32cffa57 ("hw/arm/virt: Dynamic memory map depending on RAM requirements") allowed moving the Highmem IO Regions to higher addresses to accommodate RAM more than 255 GiB, but the lower bound remained to keep the legacy memory map.
Remove the lower bound for the latest machine version to accommodate more devices with the root bridge. Keeping the lower bound for the old machine versions ensures the compatibility is still maintained.
The hardcoded memory map in tests/qtest/libqos/generic-pcihost.c is also updated.
---
Changes in v8:
- Updated the compatibility test and memory layout preservation to
virt-11.1.
- Stored the HighMem MMIO size in the machine instance so querying
another machine type's properties does not alter the active memory
map.
- Link to v7: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v7:
- Added patch "hw/arm/virt: Relax the lower bound of HighMem MMIO region
size", addressing a limitation pointed out by Igor Mammedov. I
previously described this as out of scope, but addressed it in this
version.
- Link to v6: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v6:
- Rebased.
- Link to v5: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v5:
- Changed to preserve memory layout for 10.2.
- Added patch "test/acpi: aarch64/virt: Test version 10.2".
- Link to v4: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v4:
- Rebased.
- Edited the patch message to avoid confusing git am.
- Link to v3: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v3:
- Fixed test failures reported by Peter Maydell.
- Link to v2: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v2:
- Rebased.
- Link to v1: https://lore.kernel.org/qemu-devel/[email protected]
---
Akihiko Odaki (5):
test/acpi: aarch64/virt: Test version 11.1
test/acpi: aarch64/virt: Allow DSDT and MCFG changes hw/arm/virt: Remove the lower bound of HighMem IO Regions hw/arm/virt: Relax the lower bound of HighMem MMIO region size test/acpi: aarch64/virt: Update golden masters for DSDT and MCFG
docs/system/arm/virt.rst | 2 +- include/hw/arm/virt.h | 3 ++ hw/arm/virt.c | 48 +++++++++++++++-------- tests/qtest/bios-tables-test.c | 24 ++++++++++++ tests/qtest/libqos/generic-pcihost.c | 2 +- tests/data/acpi/aarch64/virt/DSDT | Bin 5337 -> 5333 bytes tests/data/acpi/aarch64/virt/DSDT.11.1 | Bin 0 -> 5337 bytes tests/data/acpi/aarch64/virt/DSDT.acpihmatvirt | Bin 5423 -> 5419 bytes tests/data/acpi/aarch64/virt/DSDT.acpipcihp | Bin 6246 -> 6242 bytes tests/data/acpi/aarch64/virt/DSDT.hpoffacpiindex | Bin 5391 -> 5387 bytes tests/data/acpi/aarch64/virt/DSDT.memhp | Bin 6698 -> 6698 bytes tests/data/acpi/aarch64/virt/DSDT.pxb | Bin 7812 -> 7808 bytes tests/data/acpi/aarch64/virt/DSDT.smmuv3-dev | Bin 10274 -> 10270 bytes tests/data/acpi/aarch64/virt/DSDT.smmuv3-legacy | Bin 10274 -> 10270 bytes tests/data/acpi/aarch64/virt/DSDT.topology | Bin 5539 -> 5535 bytes tests/data/acpi/aarch64/virt/DSDT.viot | Bin 5354 -> 5350 bytes tests/data/acpi/aarch64/virt/MCFG | Bin 60 -> 60 bytes tests/data/acpi/aarch64/virt/MCFG.11.1 | Bin 0 -> 60 bytes tests/data/acpi/aarch64/virt/MCFG.memhp | Bin 0 -> 60 bytes 19 files changed, 61 insertions(+), 18 deletions(-)
---
base-commit: 209b2afaface001c7d4d981e38f186afe7b24a50
change-id: 20250728-virt-833dafa6c11b
Best regards,
Signature · 1 line
Akihiko Odaki <[email protected]>