s390x/virtio-ccw: reference-counted indicators
commit7bca3892cb951afb5945480b090e3fb93578cd6a
authorCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 1 Aug 2013 15:27:00 +0000 (1 17:27 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 20 May 2014 11:05:58 +0000 (20 13:05 +0200)
tree72cb03ef930fcc2798b1030d77bb36f0f7fdd218
parent03cf077ac9c02ccc192b9011ced12cc74f9151bb
s390x/virtio-ccw: reference-counted indicators

Make code using the same indicators point to a single allocated structure
that is freed when the last user goes away.

This will be used by the irqfd code to unmap addresses after the last user
is gone.

Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/virtio-ccw.c
hw/s390x/virtio-ccw.h