mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
microvm: make number of virtio transports runtime changeable
This will allow to increase the number of transports in case we have enough irq lines available for them all. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Sergio Lopez <slp@redhat.com> Message-id: 20201203105423.10431-5-kraxel@redhat.com
This commit is contained in:
parent
94c5a60637
commit
c214a7bcb6
2 changed files with 8 additions and 3 deletions
|
@ -52,7 +52,6 @@
|
|||
|
||||
/* Platform virtio definitions */
|
||||
#define VIRTIO_MMIO_BASE 0xfeb00000
|
||||
#define VIRTIO_NUM_TRANSPORTS 8
|
||||
#define VIRTIO_CMDLINE_MAXLEN 64
|
||||
|
||||
#define GED_MMIO_BASE 0xfea00000
|
||||
|
@ -98,6 +97,7 @@ struct MicrovmMachineState {
|
|||
|
||||
/* Machine state */
|
||||
uint32_t virtio_irq_base;
|
||||
uint32_t virtio_num_transports;
|
||||
bool kernel_cmdline_fixed;
|
||||
Notifier machine_done;
|
||||
Notifier powerdown_req;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue