diff options
author | Paolo Bonzini | 2020-11-12 15:38:36 +0100 |
---|---|---|
committer | Paolo Bonzini | 2020-12-15 18:51:52 +0100 |
commit | 2f181fbd5a9d456d1da291bea61d7e3ad10ec7d1 (patch) | |
tree | f6be4e559a9b9a95a2870caf0fc323e7ca6778e7 /hw/virtio | |
parent | chardev: do not use machine_init_done (diff) | |
download | qemu-2f181fbd5a9d456d1da291bea61d7e3ad10ec7d1.tar.gz qemu-2f181fbd5a9d456d1da291bea61d7e3ad10ec7d1.tar.xz qemu-2f181fbd5a9d456d1da291bea61d7e3ad10ec7d1.zip |
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>
Diffstat (limited to 'hw/virtio')
-rw-r--r-- | hw/virtio/virtio-iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio/virtio-iommu.c b/hw/virtio/virtio-iommu.c index cea8811295..6b9ef7f6b2 100644 --- a/hw/virtio/virtio-iommu.c +++ b/hw/virtio/virtio-iommu.c @@ -930,7 +930,7 @@ static int virtio_iommu_set_page_size_mask(IOMMUMemoryRegion *mr, * accept it. Having a different masks is possible but the guest will use * sub-optimal block sizes, so warn about it. */ - if (qdev_hotplug) { + if (phase_check(PHASE_MACHINE_READY)) { int new_granule = ctz64(new_mask); int cur_granule = ctz64(cur_mask); |