Skip to content

amd_iommu: Fix Coverity and endianness issues

Alejandro Jimenez qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesIn review
  2. v12 patches 5 repliesSuperseded

Changes in v2 from the cover letter

https://lore.kernel.org/all/[email protected]/
- Added Peter's Reviewed-by to patch 1.
- Dropped the standalone "Fully initialize XT interrupt message state" patch. Patch 2 now fixes CID 1660056 and removes the XT bitfield union.
- Added two patches to remove IRTE bitfield decoding and fix command buffer endianness handling.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4amd_iommu: Return int from page walk status helpershw/i386/amd_iommu.c+2 -20 replies
2/4amd_iommu: Decode XT interrupt control register without bitfieldshw/i386/amd_iommu.c hw/i386/amd_iommu.h+18 -241 reply
3/4amd_iommu: Decode IRTEs without bitfieldshw/i386/amd_iommu.c hw/i386/amd_iommu.h+69 -730 replies
4/4amd_iommu: Fix endianness handling for command buffer entrieshw/i386/amd_iommu.c+29 -100 replies

Reviews trailers per patch

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

PatchPeter MaydellPhilippe Mathieu-Daudé
SeriesR-b
1/4R-b
2/4R-b
3/4
4/4

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/4] amd_iommu: Fix Coverity and endianness issues

This series fixes the AMD vIOMMU issues reported from the 11.1 pull request Coverity scan, plus follow-up review comments pointing out bitfield usage and big-endian hosts compatibility concerns.

Although patches 3 and 4 fix correctness issues in big-endian hosts, these are longstanding portability bugs rather than recent regressions, so I have not CC'd qemu-stable on them.

Thank you,
Alejandro

Changes since v1:
https://lore.kernel.org/all/[email protected]/
- Added Peter's Reviewed-by to patch 1.
- Dropped the standalone "Fully initialize XT interrupt message state" patch. Patch 2 now fixes CID 1660056 and removes the XT bitfield union.
- Added two patches to remove IRTE bitfield decoding and fix command buffer endianness handling.

Alejandro Jimenez (4):
amd_iommu: Return int from page walk status helpers
amd_iommu: Decode XT interrupt control register without bitfields
amd_iommu: Decode IRTEs without bitfields
amd_iommu: Fix endianness handling for command buffer entries

 hw/i386/amd_iommu.c | 164 +++++++++++++++++++++++++++++++-------------
 hw/i386/amd_iommu.h |  63 -----------------
 2 files changed, 118 insertions(+), 109 deletions(-)

base-commit: b83371668192a705b878e909c5ae9c1233cbd5fb

Signature · 1 line
2.47.3