spapr: Implement DR-indicator for physical DRCs only
commit67fea71bf3be579ad0be5abe34cd6fa1bc65ad5b
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 8 Jun 2017 13:55:03 +0000 (8 23:55 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 17 Jul 2017 05:07:05 +0000 (17 15:07 +1000)
treee18c0f3f797b5f6d7c089124a9dbf1a9ad1ab96d
parent4445b1d27ee65ceee12b71bc20242996c8eb5cf8
spapr: Implement DR-indicator for physical DRCs only

According to PAPR, the DR-indicator should only be valid for physical DRCs,
not logical DRCs.  At the moment we implement it for all DRCs, so restrict
it to physical ones only.

We move the state to the physical DRC subclass, which means adding some
QOM boilerplate to handle the newly distinct type.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Daniel Barboza <danielhb@linux.vnet.ibm.com>
Tested-by: Daniel Barboza <danielhb@linux.vnet.ibm.com>
hw/ppc/spapr_drc.c
include/hw/ppc/spapr_drc.h