Skip to content

igvm: fix byte_offset handling in parameter directives

Luigi Leonardi qemu-devel 5 versions – In review

Get series with b4
b4 am [email protected] change-id 20260902-fix_offset-a268cb12aafc

Versions newest first

  1. v5 Latest2 patches 4 repliesIn review
  2. v41 patch 1 replySuperseded
  3. v32 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches2 repliesSuperseded
v12 patches2 repliesSuperseded

Changes in v5 from the cover letter

- Marked qigvm_find_param_entry as static [Stefano]
- Improved commit message [Stefano]
- Link to v4: https://lore.kernel.org/qemu-devel/[email protected]

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2igvm: validate and honor byte_offset in parameter directivesbackends/igvm.c include/system/igvm-internal.h target/i386/igvm.c+77 -293 replies
2/2igvm: mark qigvm_find_param_entry as staticbackends/igvm.c include/system/igvm-internal.h+1 -51 reply

Reviews trailers per patch

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

PatchStefano Garzarella
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 v5 thread

Cover letter [PATCH v5 0/2] igvm: fix byte_offset handling in parameter directives

IGVM directives _can_ place their data at a byte_offset within a shared parameter area, letting multiple parameters be packed into one area.

This offset was either ignored entirely or used without first checking it.

Patch 1 introduces checks and honors the offset. Patch 2 cleanup patch (marks one function as static).

More details in commit messages.

---
Changes in v5:
- Marked qigvm_find_param_entry as static [Stefano]
- Improved commit message [Stefano]
- Link to v4: https://lore.kernel.org/qemu-devel/[email protected]

Changes in v4:
- Squashed two commits in one.
- Removed one parameter from qigvm_get_param_data [Stefano]
- Removed some useless variables [Stefano]
- Rebased to latest upstream
- Link to v3: https://lore.kernel.org/qemu-devel/[email protected]

Changes in v3:
- Renamed the function to qigvm_get_param_data. [Stefano]
- qigvm_get_param_data now returns the data pointer directly [Stefano]
- Added fixes tags. [Stefano]
- Renamed variables to param_data and param_size [Stefano]
- Link to v2: https://lore.kernel.org/qemu-devel/[email protected]

Changes in v2:
- Inverted commit order: first I introduce the helper and use it where
necessary, then in commit 2 I handle the offset. [Stefano]
- The helper now returns data and size, that already consider the byte
offset [Stefano]
- Link to v1: https://lore.kernel.org/qemu-devel/[email protected]

---
Luigi Leonardi (2):
igvm: validate and honor byte_offset in parameter directives
igvm: mark qigvm_find_param_entry as static

 backends/igvm.c                | 91 +++++++++++++++++++++++++++++++-----------
 include/system/igvm-internal.h |  7 ++--
 target/i386/igvm.c             | 12 +++---
 3 files changed, 77 insertions(+), 33 deletions(-)

---
base-commit: 5f664cd37aec17e8145aa117d8da68f507edc8f1
change-id: 20260902-fix_offset-a268cb12aafc

Best regards,

Signature · 1 line
Luigi Leonardi <[email protected]>