summaryrefslogtreecommitdiffstats
path: root/hw/arm
diff options
context:
space:
mode:
authorGreg Kurz2020-10-15 23:18:53 +0200
committerDavid Gibson2020-10-27 15:08:53 +0100
commit3cff86f036142057368b6040a8c78dce225500c7 (patch)
treed4988fd771a3d362c6ba49021e5b1db36328d9b8 /hw/arm
parentspapr: Make spapr_cpu_core_unrealize() idempotent (diff)
downloadqemu-3cff86f036142057368b6040a8c78dce225500c7.tar.gz
qemu-3cff86f036142057368b6040a8c78dce225500c7.tar.xz
qemu-3cff86f036142057368b6040a8c78dce225500c7.zip
spapr: Simplify spapr_cpu_core_realize() and spapr_cpu_core_unrealize()
Now that the error path of spapr_cpu_core_realize() is just to call idempotent spapr_cpu_core_unrealize() for rollback, no need to create and realize the vCPUs in two separate loops. Merge them and do them same in spapr_cpu_core_unrealize() for symmetry. Signed-off-by: Greg Kurz <groug@kaod.org> Message-Id: <160279673321.1808373.2248221100790367912.stgit@bahia.lan> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/arm')
0 files changed, 0 insertions, 0 deletions