From b86eacb804bdb92acc48cab8cd2a465714a829ab Mon Sep 17 00:00:00 2001 From: Marcel Apfelbaum Date: Mon, 27 Jun 2016 18:38:32 +0300 Subject: 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 Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- vl.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vl.c') diff --git a/vl.c b/vl.c index 9bb7f4c..5cd0f2a 100644 --- a/vl.c +++ b/vl.c @@ -2675,6 +2675,11 @@ void qemu_add_machine_init_done_notifier(Notifier *notify) } } +void qemu_remove_machine_init_done_notifier(Notifier *notify) +{ + notifier_remove(notify); +} + static void qemu_run_machine_init_done_notifiers(void) { notifier_list_notify(&machine_init_done_notifiers, NULL); -- cgit v1.1