spapr: Allocate HTAB from machine init
commitb817772a2521defba513b64b1d08238f24c50657
authorBharata B Rao <bharata@linux.vnet.ibm.com>
Thu, 24 Sep 2015 08:22:47 +0000 (24 13:52 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 22 Oct 2015 23:38:10 +0000 (23 10:38 +1100)
tree5b98ff8d934cab8a8f032bf456350c078c6e693c
parent6a6739de510706e1d337180d12be74ebbd0c7666
spapr: Allocate HTAB from machine init

Allocate HTAB from ppc_spapr_init() so that we can abort the guest
if requested HTAB size is't allocated by the host. However retain the
htab reset call in spapr_reset_htab() so that HTAB gets reset (and
not allocated) during machine reset.

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