diff options
author | Yi Min Zhao <zyimin@linux.vnet.ibm.com> | 2016-12-08 13:03:18 +0800 |
---|---|---|
committer | Cornelia Huck <cornelia.huck@de.ibm.com> | 2017-01-20 10:01:18 +0100 |
commit | 03805be08195fca358b12dacc26370f8d1b2c27b (patch) | |
tree | e594e55fe2140114975efd16f6d1c1aa6d61076e /qdev-monitor.c | |
parent | de91ea92e9082609dc413f0109abc77283b4ff0a (diff) | |
download | qemu-03805be08195fca358b12dacc26370f8d1b2c27b.zip qemu-03805be08195fca358b12dacc26370f8d1b2c27b.tar.gz qemu-03805be08195fca358b12dacc26370f8d1b2c27b.tar.bz2 |
s390x/pci: dynamically allocate iommu
When initializing a PCI device, an address space is required during PCI
core initialization and before the call to the embedding object hotplug
callback. To provide this AS, we allocate a S390PCIIOMMU object
containing this AS. Initialization of S390PCIIOMMU object is done
before the PCI device is completely created. So that we cannot
associate the IOMMU with the device at the moment. To track the IOMMU
object, we use g_hash functions with the PCI device's bus address as a
key to provide an array of pointers indexed by the PCI device's devfn
to the allocated IOMMU.
Signed-off-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'qdev-monitor.c')
0 files changed, 0 insertions, 0 deletions