On 05/23/2016 05:08 PM, Paolo Bonzini wrote:


On 23/05/2016 16:01, Marcel Apfelbaum wrote:
Skip bus_master_enable region creation on PCI devices 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 <mar...@redhat.com>
---
  hw/i386/pc.c         | 17 +++++++++++++++++
  hw/pci/pci.c         | 22 ++++++++++++----------
  include/hw/pci/pci.h |  2 ++
  3 files changed, 31 insertions(+), 10 deletions(-)

Does hotplug still work?

Hotplug does work, but the device can't be bus_master since I am adding
the bus_master_region only at machine_done...

Thank you for pointing that out, this can be easily solved by checking
the qdev_hotplug flag and enabling the bus_master region if we passed machine 
creation.

Other than that, does it seems to a you a feasible approach?

Thanks,
Marcel


Thanks,

Paolo



Reply via email to