Re: [Qemu-devel] [PATCH v8 03/13] target/arm: Swap PMU values before/after migrations

2018-11-30 Thread Peter Maydell
On Tue, 20 Nov 2018 at 21:26, Aaron Lindsay wrote: > > Because of the PMU's design, many register accesses have side effects > which are inter-related, meaning that the normal method of saving CP > registers can result in inconsistent state. These side-effects are > largely handled in pmu_op_start

[Qemu-devel] [PATCH v8 03/13] target/arm: Swap PMU values before/after migrations

2018-11-20 Thread Aaron Lindsay
Because of the PMU's design, many register accesses have side effects which are inter-related, meaning that the normal method of saving CP registers can result in inconsistent state. These side-effects are largely handled in pmu_op_start/finish functions which can be called before and after the sta