On Mon, Mar 23, 2015 at 07:05:42PM +0530, Bharata B Rao wrote: > From: Michael Roth <mdr...@linux.vnet.ibm.com> > > Introduce an sPAPRMachineClass sub-class of MachineClass to > handle sPAPR-specific machine configuration properties. > > The 'dr_phb[cpu,lmb]_enabled' field of that class can be set as > part of machine-specific init code, and is then propagated > to sPAPREnvironment to conditional enable creation of DRC > objects and device-tree description to facilitate hotplug > of PHBs/CPUs/LMBs. > > Since we can't migrate this state to older machine types, > default the option to false and only enable it for new > machine types. > > Signed-off-by: Michael Roth <mdr...@linux.vnet.ibm.com> > Signed-off-by: Bharata B Rao <bhar...@linux.vnet.ibm.com> > [Added CPU and LMB bits] > Reviewed-by: Michael Roth <mdr...@linux.vnet.ibm.com> > Reviewed-by: David Gibson <da...@gibson.dropbear.id.au>
[snip] > @@ -1854,11 +1882,15 @@ static const TypeInfo spapr_machine_2_2_info = { > static void spapr_machine_2_3_class_init(ObjectClass *oc, void *data) > { > MachineClass *mc = MACHINE_CLASS(oc); > + sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(oc); > > mc->name = "pseries-2.3"; > mc->desc = "pSeries Logical Partition (PAPR compliant) v2.3"; > mc->alias = "pseries"; > mc->is_default = 1; > + smc->dr_phb_enabled = true; > + smc->dr_cpu_enabled = true; > + smc->dr_lmb_enabled = true; > } Presumably this will move to pseries-2.4 before merge. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
pgpH_sVhSyaon.pgp
Description: PGP signature