mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
machine: introduce MachineInitPhase
Generalize the qdev_hotplug variable to the different phases of machine initialization. We would like to allow different monitor commands depending on the phase. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
5a1ee6077b
commit
2f181fbd5a
11 changed files with 73 additions and 32 deletions
|
@ -1062,7 +1062,7 @@ static PCIDevice *do_pci_register_device(PCIDevice *pci_dev,
|
|||
address_space_init(&pci_dev->bus_master_as,
|
||||
&pci_dev->bus_master_container_region, pci_dev->name);
|
||||
|
||||
if (qdev_hotplug) {
|
||||
if (phase_check(PHASE_MACHINE_READY)) {
|
||||
pci_init_bus_master(pci_dev);
|
||||
}
|
||||
pci_dev->irq_state = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue