summary refs log tree commit diff stats
path: root/include/hw/i386/microvm.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-10-14 21:36:17 +0200
committerGerd Hoffmann <kraxel@redhat.com>2021-11-02 17:24:17 +0100
commitf5918a992839454c6e87234760bdf7aee804aa33 (patch)
tree605cce368374fdff9be23b028f96979d093fc63f /include/hw/i386/microvm.h
parent584ab347ce9e65617f5981d209756db83a824813 (diff)
downloadfocaccia-qemu-f5918a992839454c6e87234760bdf7aee804aa33.tar.gz
focaccia-qemu-f5918a992839454c6e87234760bdf7aee804aa33.zip
microvm: add device tree support.
Allows edk2 detect virtio-mmio devices and pcie ecam.
See comment in hw/i386/microvm-dt.c for more details.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Message-Id: <20211014193617.2475578-1-kraxel@redhat.com>
Diffstat (limited to 'include/hw/i386/microvm.h')
-rw-r--r--include/hw/i386/microvm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/i386/microvm.h b/include/hw/i386/microvm.h
index f25f837441..4d9c732d4b 100644
--- a/include/hw/i386/microvm.h
+++ b/include/hw/i386/microvm.h
@@ -104,6 +104,10 @@ struct MicrovmMachineState {
     Notifier machine_done;
     Notifier powerdown_req;
     struct GPEXConfig gpex;
+
+    /* device tree */
+    void *fdt;
+    uint32_t ioapic_phandle[2];
 };
 
 #define TYPE_MICROVM_MACHINE   MACHINE_TYPE_NAME("microvm")