hw/pci: delay bus_master_enable_region initialization
Skip bus_master_enable region creation on PCI device init in order to be sure the IOMMU device (if present) would be created in advance. Add this memory region at machine_done time. Signed-off-by: Marcel Apfelbaum <marcel@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
1b04cc801a
commit
b86eacb804
4 changed files with 40 additions and 9 deletions
|
|
@ -39,6 +39,8 @@ struct PCIBus {
|
|||
Keep a count of the number of devices with raised IRQs. */
|
||||
int nirq;
|
||||
int *irq_count;
|
||||
|
||||
Notifier machine_done;
|
||||
};
|
||||
|
||||
typedef struct PCIBridgeWindows PCIBridgeWindows;
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ void qemu_add_exit_notifier(Notifier *notify);
|
|||
void qemu_remove_exit_notifier(Notifier *notify);
|
||||
|
||||
void qemu_add_machine_init_done_notifier(Notifier *notify);
|
||||
void qemu_remove_machine_init_done_notifier(Notifier *notify);
|
||||
|
||||
void hmp_savevm(Monitor *mon, const QDict *qdict);
|
||||
int load_vmstate(const char *name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue