spapr: Support hotplug by specifying DRC count
commit7a36ae7a9f4f136d40fe1da4aab66b364d4aa56d
authorBharata B Rao <bharata@linux.vnet.ibm.com>
Mon, 3 Aug 2015 05:35:42 +0000 (3 11:05 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Sep 2015 00:51:11 +0000 (23 10:51 +1000)
tree2df211c1a79f0384b6214b23312e172207400a32
parente8f986fc57a664a74b9f685b466506366a15201b
spapr: Support hotplug by specifying DRC count

Support hotplug identifier type RTAS_LOG_V6_HP_ID_DRC_COUNT that allows
hotplugging of DRCs by specifying the DRC count.

While we are here, rename

spapr_hotplug_req_add_event() to spapr_hotplug_req_add_by_index()
spapr_hotplug_req_remove_event() to spapr_hotplug_req_remove_by_index()

so that they match with spapr_hotplug_req_add_by_count().

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
hw/ppc/spapr_events.c
hw/ppc/spapr_pci.c
include/hw/ppc/spapr.h