diff options
author | Gerd Hoffmann | 2020-09-15 14:08:56 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2020-09-17 14:16:19 +0200 |
commit | 8045df14bccaeec39291c3d83fea2f638656b5d0 (patch) | |
tree | cc3062a912fd65a2ac4285bdb9e79b2c40e8e112 /include/hw/i386 | |
parent | microvm: make virtio irq base runtime configurable (diff) | |
download | qemu-8045df14bccaeec39291c3d83fea2f638656b5d0.tar.gz qemu-8045df14bccaeec39291c3d83fea2f638656b5d0.tar.xz qemu-8045df14bccaeec39291c3d83fea2f638656b5d0.zip |
microvm/acpi: add minimal acpi support
$subject says all. Can be controlled using -M microvm,acpi=on/off.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-id: 20200915120909.20838-9-kraxel@redhat.com
Diffstat (limited to 'include/hw/i386')
-rw-r--r-- | include/hw/i386/microvm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/hw/i386/microvm.h b/include/hw/i386/microvm.h index 87593694eb..d75dcf8203 100644 --- a/include/hw/i386/microvm.h +++ b/include/hw/i386/microvm.h @@ -24,6 +24,7 @@ #include "hw/boards.h" #include "hw/i386/x86.h" +#include "hw/acpi/acpi_dev_interface.h" #include "qom/object.h" /* Platform virtio definitions */ @@ -31,6 +32,11 @@ #define VIRTIO_NUM_TRANSPORTS 8 #define VIRTIO_CMDLINE_MAXLEN 64 +#define GED_MMIO_BASE 0xfea00000 +#define GED_MMIO_BASE_MEMHP (GED_MMIO_BASE + 0x100) +#define GED_MMIO_BASE_REGS (GED_MMIO_BASE + 0x200) +#define GED_MMIO_IRQ 9 + /* Machine type options */ #define MICROVM_MACHINE_PIT "pit" #define MICROVM_MACHINE_PIC "pic" @@ -60,6 +66,9 @@ struct MicrovmMachineState { /* Machine state */ uint32_t virtio_irq_base; bool kernel_cmdline_fixed; + Notifier machine_done; + Notifier powerdown_req; + AcpiDeviceIf *acpi_dev; }; typedef struct MicrovmMachineState MicrovmMachineState; |