summaryrefslogtreecommitdiffstats
path: root/scripts/modules
diff options
context:
space:
mode:
authorGreg Kurz2017-06-08 15:42:59 +0200
committerDavid Gibson2017-06-09 04:15:57 +0200
commit9ed656631d73a7564dfe178ca8c48bf049098aaf (patch)
tree8b0121c4ade2d731e07e873ed64a6ea9ef80e4c2 /scripts/modules
parentxics: pass appropriate types to realize() handlers. (diff)
downloadqemu-9ed656631d73a7564dfe178ca8c48bf049098aaf.tar.gz
qemu-9ed656631d73a7564dfe178ca8c48bf049098aaf.tar.xz
qemu-9ed656631d73a7564dfe178ca8c48bf049098aaf.zip
xics: setup cpu at realize time
Until recently, spapr used to allocate ICPState objects for the lifetime of the machine. They would only be associated to vCPUs in xics_cpu_setup() when plugging a CPU core. Now that ICPState objects have the same lifecycle as vCPUs, it is possible to associate them during realization. This patch hence open-codes xics_cpu_setup() in icp_realize(). The vCPU is passed as a property. Note that vCPU now needs to be realized first for the IRQs to be allocated. It also needs to resetted before ICPState realization in order to synchronize with KVM. Since ICPState objects are freed when unrealized, xics_cpu_destroy() isn't needed anymore and can be safely dropped. Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'scripts/modules')
0 files changed, 0 insertions, 0 deletions