sysbus: add a variant of sysbus_init_mmio_cb with an unmap callback
commitd76120135b9ed5ea34c2038629dc9bc563f46108
authorAvi Kivity <avi@redhat.com>
Mon, 15 Aug 2011 14:17:29 +0000 (15 17:17 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Aug 2011 15:47:47 +0000 (22 10:47 -0500)
treef9b6c7ca5d516c8e3018e20966726b0f2252abbb
parentb6dcbe086c77ec683f5ff0b693593cda1d61f3a1
sysbus: add a variant of sysbus_init_mmio_cb with an unmap callback

sysbus_init_mmio_cb() uses the destructive IO_MEM_UNASSIGNED to remove a
region.  Provide an alternative that calls an unmap callback, so the removal
may be done non-destructively.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/sysbus.c
hw/sysbus.h