Skip to content

xen/arm: fix iomem_ranges cfg in map_range_to_domain()

Grygorii Strashko xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesIn review
  2. v11 patch 5 repliesSuperseded

Changes in v2 from the cover letter

- split on two patches
- add "fixes" tags
- rewording of commit messages

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xen/arm: fix iomem permissions cfg in map_range_to_domain()xen/arch/arm/device.c+1 -13 replies
2/2xen/arm: fix iomem_ranges cfg in map_range_to_domain()xen/arch/arm/device.c+1 -11 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJulien Grall
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] xen/arm: fix iomem_ranges cfg in map_range_to_domain()

Hi

This series fixes incorrect calculation of iomem_range end address in map_range_to_domain() which is then passed to iomem_permit_access() and rangeset_add_range().
Those function expect the iomem_range end address to be inclusive while calculations are made with incorrect assumption it's exclusive.

Output of "key 'q' (ascii '71') => dump domain (and guest debug) info"
before:
(XEN) I/O Memory { 8000-c000, 30000-40000, 47ff0-47ff8, 7ff00-7ff01, c0000-d0000, e6020-e6021, ...

after:
(XEN) I/O Memory { 8000-bfff, 30000-3ffff, 47ff0-47ff7, 7ff00, c0000-cffff, e6020, ...

Changes in v2:
- split on two patches
- add "fixes" tags
- rewording of commit messages

v1:
https://patchew.org/Xen/[email protected]/

Grygorii Strashko (2):
xen/arm: fix iomem permissions cfg in map_range_to_domain() xen/arm: fix iomem_ranges cfg in map_range_to_domain()

 xen/arch/arm/device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1