]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/spapr_drc.c
spapr: Split DRC release from DRC detach
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 7 Jun 2017 14:36:23 +0000 (00:36 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 30 Jun 2017 04:03:32 +0000 (14:03 +1000)
commit9c914e53702354bc681dedef2e1e6b43fc349043
treedc585fc18f4aab55318217f866b57767caf0f536
parent307b7715d0256c95444cada36a02882e46bada2f
spapr: Split DRC release from DRC detach

spapr_drc_detach() is called when qemu generic code requests a device be
unplugged.  It makes a number of tests, which could well delay further
action until later, before actually detach the device from the DRC.

This splits out the part which actually removes the device from the DRC
into spapr_drc_release().  This will be useful for further cleanups.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ppc/spapr_drc.c