Skip to content

igvm: misc changes and device tree support

Luigi Leonardi qemu-devel 6 versions – In review

Get series with b4
b4 am [email protected] change-id 20260608-microvm_device_tree-0263c3b1be86

Versions newest first

  1. v6 Latest3 patches 3 repliesIn review
  2. v52 patches 1 replySuperseded
  3. v41 patch 1 replySuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v31 patch3 repliesSuperseded
v22 patches3 repliesSuperseded
v12 patches6 repliesSuperseded

Changes in v6 from the cover letter

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3igvm: Report error on missing parameter area in directive handlersbackends/igvm.c include/system/igvm-internal.h target/i386/igvm.c+21 -131 reply
2/3igvm: use idiomatic meson conditional for IGVM build filesbackends/meson.build+2 -51 reply
3/3igvm: add device tree parameter supportbackends/igvm.c backends/meson.build+55 -11 reply

Reviews trailers per patch

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

PatchStefano Garzarella
1/3R-b
2/3R-b
3/3R-b

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

Read the v6 thread

Cover letter [PATCH v6 0/3] igvm: misc changes and device tree support

This device tree will be consumed by Coconut SVSM with the upcoming device tree support [1]. This will allow SVSM to run on a normal CPU (not AMD SEV-SNP) and execute all its tests using upstream QEMU.

Eventually edk2 will also be able to consume DT via IGVM, but the work has not started yet.

This series contains one patch that simplifies meson logic and another one that changes the return behaviour of qigvm_find_param_entry.

This is to avoid conflicts with the device tree patch itself, that needs to modify the same lines.

[1] https://github.com/coconut-svsm/svsm/pull/1006

---
Changes in v6:
- Picked up https://lore.kernel.org/qemu-devel/[email protected]/
and fixed conflicts
- Link to v5: https://lore.kernel.org/qemu-devel/[email protected]

Changes in v5:
- Added a patch, suggested by Paolo, to simplify current igvm meson config
- Added missing fdt dependency for igvm in meson.
- Link to v4: https://lore.kernel.org/qemu-devel/[email protected]

Changes in v4:
- Using g_memdup2 [Stefano]
- madt directive is now protected by CONFIG_FDT [Stefano]
- Link to v3: https://lore.kernel.org/qemu-devel/[email protected]

Changes in v3:
- Device tree is packed in igvm core code. [Gerd]
- Dropped microvm patch.
- Link to v2: https://lore.kernel.org/qemu-devel/[email protected]

Changes in v2:
- First patch introduced a shadowed variable, fixed.
- When parameter area is not found return -1.
- Moved qigvm_directive_device_tree to backends/igvm.c
- Link to v1: https://lore.kernel.org/qemu-devel/[email protected]

---
Luigi Leonardi (3):
igvm: Report error on missing parameter area in directive handlers
igvm: use idiomatic meson conditional for IGVM build files
igvm: add device tree parameter support

 backends/igvm.c                | 80 ++++++++++++++++++++++++++++++++++++------
 backends/meson.build           |  7 ++--
 include/system/igvm-internal.h |  3 +-
 target/i386/igvm.c             |  5 +--
 4 files changed, 77 insertions(+), 18 deletions(-)

---
base-commit: 60533c6193ede6ce403e82d09d82ae2bc8fb423a
change-id: 20260608-microvm_device_tree-0263c3b1be86

Best regards,

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