OSDN Git Service

spapr: Move configure-connector state into DRC
authorDavid Gibson <david@gibson.dropbear.id.au>
Sun, 4 Jun 2017 10:26:25 +0000 (20:26 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 5 Jun 2017 23:24:17 +0000 (09:24 +1000)
commitb8fdd530be3450940130b63d930bb0aee1538e7e
treee709dafa3b09c0105392e629dbf28e37cc0e7cf4
parentfbf553971898aee18b5933d335e2fa3e74bb9be7
spapr: Move configure-connector state into DRC

Currently the sPAPRMachineState contains a list of sPAPRConfigureConnector
structures which store intermediate state for the ibm,configure-connector
RTAS call.

This was an attempt to separate this state from the core of the DRC state.
However the configure connector process is intimately tied to the DRC
model, so there's really no point trying to have two levels of interface
here.

Moving the configure-connector state into its corresponding DRC allows
removal of a number of helpers for maintaining the anciliary list.

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.c
hw/ppc/spapr_drc.c
include/hw/ppc/spapr.h
include/hw/ppc/spapr_drc.h