Re: [Qemu-devel] [PATCH v5 2/6] spapr: Add LMB DR connectors

2015-06-25 Thread Bharata B Rao
On Fri, Jun 26, 2015 at 03:38:41PM +1000, David Gibson wrote: > > + */ > > +static void spapr_validate_node_memory(MachineState *machine) > > +{ > > +int i; > > +sPAPRMachineClass *smc = SPAPR_MACHINE_GET_CLASS(machine); > > + > > +if (machine->maxram_size % SPAPR_MEMORY_BLOCK_SIZE || >

Re: [Qemu-devel] [PATCH v5 2/6] spapr: Add LMB DR connectors

2015-06-25 Thread David Gibson
On Thu, Jun 25, 2015 at 11:44:11AM +0530, Bharata B Rao wrote: > Enable memory hotplug for pseries 2.4 and add LMB DR connectors. > With memory hotplug, enforce RAM size, NUMA node memory size and maxmem > to be a multiple of SPAPR_MEMORY_BLOCK_SIZE (256M) since that's the > granularity in which LM

[Qemu-devel] [PATCH v5 2/6] spapr: Add LMB DR connectors

2015-06-24 Thread Bharata B Rao
Enable memory hotplug for pseries 2.4 and add LMB DR connectors. With memory hotplug, enforce RAM size, NUMA node memory size and maxmem to be a multiple of SPAPR_MEMORY_BLOCK_SIZE (256M) since that's the granularity in which LMBs are represented and hot-added. LMB DR connectors will be used by th