microvm: make virtio irq base runtime configurable

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-id: 20200915120909.20838-8-kraxel@redhat.com
This commit is contained in:
Gerd Hoffmann 2020-09-15 14:08:55 +02:00
parent 7bf2567c12
commit d4e9d577be
2 changed files with 8 additions and 5 deletions

View file

@ -28,7 +28,6 @@
/* Platform virtio definitions */
#define VIRTIO_MMIO_BASE 0xfeb00000
#define VIRTIO_IRQ_BASE 5
#define VIRTIO_NUM_TRANSPORTS 8
#define VIRTIO_CMDLINE_MAXLEN 64
@ -59,6 +58,7 @@ struct MicrovmMachineState {
bool auto_kernel_cmdline;
/* Machine state */
uint32_t virtio_irq_base;
bool kernel_cmdline_fixed;
};
typedef struct MicrovmMachineState MicrovmMachineState;