diff options
author | Greg Kurz <groug@kaod.org> | 2017-07-25 20:00:22 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-09-08 09:30:54 +1000 |
commit | ea359d20e606cca317d02f8289f72aecff659895 (patch) | |
tree | 3c84f7004c24d32f630a46e4802d82e27627e4a9 /hw/ppc/spapr_iommu.c | |
parent | 8dc9785ca0ff4e1c2268eb70a8156ed9696f97be (diff) | |
download | qemu-ea359d20e606cca317d02f8289f72aecff659895.zip qemu-ea359d20e606cca317d02f8289f72aecff659895.tar.gz qemu-ea359d20e606cca317d02f8289f72aecff659895.tar.bz2 |
spapr_iommu: unregister vmstate at unrealize time
Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc/spapr_iommu.c')
-rw-r--r-- | hw/ppc/spapr_iommu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/ppc/spapr_iommu.c b/hw/ppc/spapr_iommu.c index 25c5f6d..a75584c 100644 --- a/hw/ppc/spapr_iommu.c +++ b/hw/ppc/spapr_iommu.c @@ -374,6 +374,8 @@ static void spapr_tce_table_unrealize(DeviceState *dev, Error **errp) { sPAPRTCETable *tcet = SPAPR_TCE_TABLE(dev); + vmstate_unregister(DEVICE(tcet), &vmstate_spapr_tce_table, tcet); + QLIST_REMOVE(tcet, list); spapr_tce_table_disable(tcet); |