spapr: only update SDR1 once per-cpu during CAS
commit4c563d9df556454e6278035927e9e082a05b30af
authorGreg Kurz <groug@kaod.org>
Mon, 4 Sep 2017 21:46:55 +0000 (4 23:46 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 15 Sep 2017 00:29:48 +0000 (15 10:29 +1000)
tree0c31607ff359b886abf58563ac0ef63492ea8565
parent549ce59e2b9ed7f41d2f88524bd5e01b0d7db2e9
spapr: only update SDR1 once per-cpu during CAS

Commit b55d295e3ec9 added the possibility to support HPT resizing with KVM.
In the case of PR, we need to pass the userspace address of the HPT to KVM
using the SDR1 slot.
This is handled by kvmppc_update_sdr1() which uses CPU_FOREACH() to update
all CPUs. It is hence not needed to call kvmppc_update_sdr1() for each CPU.

Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_hcall.c