pnv: Add cpu unrealize path
commit5e22e29201d80124bca0124f2034e72b698cbb6f
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 13 Jun 2018 02:08:42 +0000 (13 12:08 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 16 Jun 2018 06:32:33 +0000 (16 16:32 +1000)
tree4ce5249ec62e91be777ab36b59c54960b5ec5fa7
parent3a24752112a046a5f9745b6b72e16646b4b0bcfd
pnv: Add cpu unrealize path

Currently we don't have any unrealize path for pnv cpu cores.  We get away
with this because we don't yet support cpu hotplug for pnv.

However, we're going to want it eventually, and in the meantime, it makes
it non-obvious why there are a bunch of allocations on the realize() path
that don't have matching frees.

So, implement the missing unrealize path.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
hw/ppc/pnv_core.c