spapr: Remove some non-useful properties on DRC objects
commit91dcb1ffa67cfa41a13dcc89dd44e2310b5773b0
authorDavid Gibson <david@gibson.dropbear.id.au>
Sun, 4 Jun 2017 10:28:04 +0000 (4 20:28 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 5 Jun 2017 23:24:25 +0000 (6 09:24 +1000)
tree5baf828faff6f2a0272ec8b4907e1785579a0fb8
parent1693ea168575849bc2784e193002c317ef3eee39
spapr: Remove some non-useful properties on DRC objects

 * 'connector_type' is easily derived from the 'index' property, so there's
   no point to it (it's also implicit in the QOM type of the DRC)
 * 'isolation-state', 'indicator-state' and 'allocation-state' are
   part of the transaction between qemu and guest during PAPR hotplug
   operations, and outside tools really have no business looking at it
   (especially not changing, and these were RW properties)
 * 'entity-sense' is basically just a weird PAPR encoding of whether there
   is a device connected to this DRC

Strictly speaking removing these properties is breaking the qemu interface.
However, I'm pretty sure no management tools have ever used these.  For
debugging there are better alternatives.  Therefore, I think removing these
broken interfaces is the better option.

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