]> xenbits.xensource.com Git - qemu-xen.git/commit
spapr: Increase hotpluggable memory slots to 256
authorBharata B Rao <bharata@linux.vnet.ibm.com>
Thu, 2 Jun 2016 14:07:37 +0000 (19:37 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 7 Jun 2016 00:17:45 +0000 (10:17 +1000)
commit71c9a3dd04e462c2d07c7e343de137ae6f9a96aa
tree1e163be786ea240156f410db48aec62a3de6da16
parentb3162f22cb3cbca73d4c90b936dbadff6954e2f6
spapr: Increase hotpluggable memory slots to 256

KVM now supports 512 memslots on PowerPC (earlier it was 32). Allow half
of it (256) to be used as hotpluggable memory slots.

Instead of hard coding the max value, use the KVM supplied value if KVM
is enabled. Otherwise resort to the default value of 32.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c