On Thu, 23 Jul 2020 at 03:57, Thiago Jung Bauermann <bauer...@linux.ibm.com> wrote: > > The ARM code has a start-powered-off property in ARMCPU, which is a > subclass of CPUState. This property causes arm_cpu_reset() to set > CPUState::halted to 1, signalling that the CPU should start in a halted > state. Other architectures also have code which aim to achieve the same > effect, but without using a property. > > The ppc/spapr version has a bug where QEMU does a KVM_RUN on the vcpu > before cs->halted is set to 1, causing the vcpu to run while it's still in > an unitialized state (more details in patch 3). > > Peter Maydell mentioned the ARM start-powered-off property and > Eduardo Habkost suggested making it generic, so this patch series does > that, for all cases which I was able to find via grep in the code.
Acked-by: Peter Maydell <peter.mayd...@linaro.org> for the Arm bits if you want to take the bug-fixing parts of this series in via some other tree. (I think they've all been reviewed.) thanks -- PMM