spapr: Abort when HTAB of requested size isn't allocated
commit7735fedaf490cf9213cd8d487272b69a4987c851
authorBharata B Rao <bharata@linux.vnet.ibm.com>
Thu, 24 Sep 2015 08:22:48 +0000 (24 13:52 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 22 Oct 2015 23:38:10 +0000 (23 10:38 +1100)
tree9a42cc34de6858d8d904d9d21b7c362fec7ea9b5
parentb817772a2521defba513b64b1d08238f24c50657
spapr: Abort when HTAB of requested size isn't allocated

Terminate the guest when HTAB of requested size isn't allocated by
the host.

When memory hotplug is attempted on a guest that has booted with
less than requested HTAB size, the guest kernel will not be able
to gracefully fail the hotplug request. This patch will ensure that
we never end up in a situation where memory hotplug fails due to
less than requested HTAB size.

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