[PATCH v5 0/2] igvm: device tree support

Luigi Leonardi posted 2 patches 2 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260625-microvm._5Fdevice._5Ftree-v5-0-bcff11fd6d1c@redhat.com
Maintainers: Gerd Hoffmann <kraxel@redhat.com>, Stefano Garzarella <sgarzare@redhat.com>, Ani Sinha <anisinha@redhat.com>
backends/igvm.c      | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++
backends/meson.build |  7 ++-----
2 files changed, 57 insertions(+), 5 deletions(-)
[PATCH v5 0/2] igvm: device tree support
Posted by Luigi Leonardi 2 days ago
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.

In this v5, I'm adding a patch that simplifies meson logic. Adding it
here to avoid conflicts with patch 2, that needs to modify the same line.

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

Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
---
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/20260615-microvm_device_tree-v4-1-128a59fd2f78@redhat.com

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/20260611-microvm_device_tree-v3-1-dfb9cf0000b8@redhat.com

Changes in v3:
- Device tree is packed in igvm core code. [Gerd]
- Dropped microvm patch.
- Link to v2: https://lore.kernel.org/qemu-devel/20260610-microvm_device_tree-v2-0-4fb44730c49f@redhat.com

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/20260608-microvm_device_tree-v1-0-730874ad0008@redhat.com

---
Luigi Leonardi (2):
      igvm: use idiomatic meson conditional for IGVM build files
      igvm: add device tree parameter support

 backends/igvm.c      | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 backends/meson.build |  7 ++-----
 2 files changed, 57 insertions(+), 5 deletions(-)
---
base-commit: b83371668192a705b878e909c5ae9c1233cbd5fb
change-id: 20260608-microvm_device_tree-0263c3b1be86

Best regards,
-- 
Luigi Leonardi <leonardi@redhat.com>
Re: [PATCH v5 0/2] igvm: device tree support
Posted by Luigi Leonardi 1 day ago
On Thu, Jun 25, 2026 at 09:56:18AM +0200, Luigi Leonardi wrote:
>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.
>
>In this v5, I'm adding a patch that simplifies meson logic. Adding it
>here to avoid conflicts with patch 2, that needs to modify the same line.
>
>[1] https://github.com/coconut-svsm/svsm/pull/1006
>
>Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
>---
>

Please ignore this patch, this will conflict with [1]. Today I will send
a new version that picks up that patch as well, fixing the conflict.

Sorry for the noise.
Luigi

[1] https://lore.kernel.org/qemu-devel/20260618-igvm_error-v2-1-2b03f4790e4f@redhat.com/