spapr: Provide better error message when slots exceed max allowed
commit19a35c9e1b964f420ee07141f049e6c96c63b740
authorBharata B Rao <bharata@linux.vnet.ibm.com>
Mon, 3 Aug 2015 05:35:39 +0000 (3 11:05 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Sep 2015 00:51:11 +0000 (23 10:51 +1000)
tree3a40ce8dd73ef0bd8b5bceabf199083767d4b14d
parentb556854bd8524c26b8be98ab1bfdf0826831e793
spapr: Provide better error message when slots exceed max allowed

Currently when user specifies more slots than allowed max of
SPAPR_MAX_RAM_SLOTS (32), we error out like this:

qemu-system-ppc64: unsupported amount of memory slots: 64

Let the user know about the max allowed slots like this:

qemu-system-ppc64: Specified number of memory slots 64 exceeds max supported 32

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