Skip to content

hw: Fix some incomplete memory region size

Philippe Mathieu-Daudé qemu-arm qemu-devel qemu-trivial xen-devel 2 versions – Applied

Status from this message: Applied to my trivial-patches branch.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 15 repliesApplied
  2. v18 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Add parenthesis on the Xen patch (Paul Durrant)
- Add Peter's R-b tags

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8hw/arm/aspeed: Correct DRAM container region sizehw/arm/aspeed.c+1 -13 replies
2/8hw/pci-host/prep: Correct RAVEN bus bridge memory region sizehw/pci-host/prep.c+1 -11 reply
3/8hw/pci/pci_bridge: Correct pci_bridge_io memory region sizehw/pci/pci_bridge.c+2 -11 reply
4/8hw/pci/pci_bridge: Use the IEC binary prefix definitionshw/pci/pci_bridge.c+2 -21 reply
5/8hw/pci-host: Use the IEC binary prefix definitionshw/pci-host/i440fx.c hw/pci-host/q35.c hw/pci-host/versatile.c+6 -41 reply
6/8hw/hppa/dino: Use the IEC binary prefix definitionshw/hppa/dino.c+2 -22 replies
7/8hw/i386/xen/xen-hvm: Use the IEC binary prefix definitionshw/i386/xen/xen-hvm.c+2 -13 replies
8/8target/i386/cpu: Use the IEC binary prefix definitionstarget/i386/cpu.c+1 -12 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPeter MaydellPaul DurrantCédric Le GoaterRichard HendersonMichael S. Tsirkin
SeriesR-b
1/8R-b R-b R-b
2/8R-b R-b
3/8R-b R-b
4/8R-b R-b
5/8R-b R-b
6/8R-b R-b
7/8R-b R-b R-b
8/8R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/8] hw: Fix some incomplete memory region size

Series fully reviewed.

Since v1:
- Add parenthesis on the Xen patch (Paul Durrant)
- Add Peter's R-b tags

memory_region_set_size() handle the 16 Exabytes limit by special-casing the UINT64_MAX value.
This is not a problem for the 32-bit maximum, 4 GiB, but in some places we incorrectly use UINT32_MAX instead of 4 GiB, and end up missing 1 byte in the memory region.

This series fixes the cases I encountered.
Also included few patches while reviewing, I replaced some magic values by the IEC binary prefix equivalent.

Regards,

Phil.

Philippe Mathieu-Daudé (8):
hw/arm/aspeed: Correct DRAM container region size hw/pci-host/prep: Correct RAVEN bus bridge memory region size hw/pci/pci_bridge: Correct pci_bridge_io memory region size hw/pci/pci_bridge: Use the IEC binary prefix definitions hw/pci-host: Use the IEC binary prefix definitions hw/hppa/dino: Use the IEC binary prefix definitions hw/i386/xen/xen-hvm: Use the IEC binary prefix definitions target/i386/cpu: Use the IEC binary prefix definitions

 hw/arm/aspeed.c         | 2 +-
 hw/hppa/dino.c          | 4 ++--
 hw/i386/xen/xen-hvm.c   | 3 ++-
 hw/pci-host/i440fx.c    | 3 ++-
 hw/pci-host/prep.c      | 2 +-
 hw/pci-host/q35.c       | 2 +-
 hw/pci-host/versatile.c | 5 +++--
 hw/pci/pci_bridge.c     | 7 ++++---
 target/i386/cpu.c       | 2 +-
 9 files changed, 17 insertions(+), 13 deletions(-)
Signature · 1 line
2.21.3