spapr: Compute effective capability values earlier
commit9f6edd066e92f61543ea561b7c3cb340f30a7017
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 14 Jun 2018 06:37:28 +0000 (14 16:37 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 21 Jun 2018 11:22:53 +0000 (21 21:22 +1000)
treeba3772e7bdd9e4ae5b6465c83966373c8e3131e7
parentad99d04c76debb0d60c0bbb5d4f6ebb3509ddc91
spapr: Compute effective capability values earlier

Previously, the effective values of the various spapr capability flags
were only determined at machine reset time.  That was a lazy way of making
sure it was after cpu initialization so it could use the cpu object to
inform the defaults.

But we've now improved the compat checking code so that we don't need to
instantiate the cpus to use it.  That lets us move the resolution of the
capability defaults much earlier.

This is going to be necessary for some future capabilities.

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