PPC: KVM: Synchronize regs on CPU dump
authorAlexander Graf <agraf@suse.de>
Tue, 13 Mar 2012 23:13:22 +0000 (00:13 +0100)
committerAlexander Graf <agraf@suse.de>
Thu, 15 Mar 2012 12:12:12 +0000 (13:12 +0100)
commit29979a8d2596d33b474c11efb376ed47ba1d44d3
treeb64ddd8710db313c3733b3f11e42ebc4f9e6f5c0
parent92e4b519e0808948ae4bc710fb1db7d3cc2245a1
PPC: KVM: Synchronize regs on CPU dump

When we dump the CPU registers, there's a certain chance they haven't been
synchronized with KVM yet, so we have to manually trigger that.

This aligns the code with x86 and fixes a bug where the register state was
bogus on invalid/unknown kvm exit reasons.

Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate.c