diff options
author | Alexey Kardashevskiy | 2015-05-07 07:33:37 +0200 |
---|---|---|
committer | Alexander Graf | 2015-06-03 23:56:51 +0200 |
commit | dea1b3ce756d7242d4212c22b7d6e6a896495154 (patch) | |
tree | 5cb5efe07286418a5a1218a5da0b2ab2805a24eb /hw/ppc/spapr_iommu.c | |
parent | spapr_pci: Rework device-tree rendering (diff) | |
download | qemu-dea1b3ce756d7242d4212c22b7d6e6a896495154.tar.gz qemu-dea1b3ce756d7242d4212c22b7d6e6a896495154.tar.xz qemu-dea1b3ce756d7242d4212c22b7d6e6a896495154.zip |
spapr_iommu: Give unique QOM name to TCE table
Useful for debugging.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc/spapr_iommu.c')
-rw-r--r-- | hw/ppc/spapr_iommu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/ppc/spapr_iommu.c b/hw/ppc/spapr_iommu.c index c17e831c43..a14cdc434f 100644 --- a/hw/ppc/spapr_iommu.c +++ b/hw/ppc/spapr_iommu.c @@ -161,6 +161,7 @@ sPAPRTCETable *spapr_tce_new_table(DeviceState *owner, uint32_t liobn, bool vfio_accel) { sPAPRTCETable *tcet; + char tmp[64]; if (spapr_tce_find_by_liobn(liobn)) { fprintf(stderr, "Attempted to create TCE table with duplicate" @@ -179,7 +180,8 @@ sPAPRTCETable *spapr_tce_new_table(DeviceState *owner, uint32_t liobn, tcet->nb_table = nb_table; tcet->vfio_accel = vfio_accel; - object_property_add_child(OBJECT(owner), "tce-table", OBJECT(tcet), NULL); + snprintf(tmp, sizeof(tmp), "tce-table-%x", liobn); + object_property_add_child(OBJECT(owner), tmp, OBJECT(tcet), NULL); object_property_set_bool(OBJECT(tcet), true, "realized", NULL); |