KVM: PPC: Book3S HV: Fix typo in saving DSCR
authorPaul Mackerras <paulus@samba.org>
Fri, 20 Sep 2013 23:53:28 +0000 (09:53 +1000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 28 Nov 2013 14:02:02 +0000 (14:02 +0000)
commitcb5c1a3906d2101ed7f70254b70b94e62e8d988e
tree459c7d6db6c9b514eefc8d7d003570bee8841a7c
parent21f58875dda7b00228bba716d48e3e2eafb210f9
KVM: PPC: Book3S HV: Fix typo in saving DSCR

commit cfc860253abd73e1681696c08ea268d33285a2c4 upstream.

This fixes a typo in the code that saves the guest DSCR (Data Stream
Control Register) into the kvm_vcpu_arch struct on guest exit.  The
effect of the typo was that the DSCR value was saved in the wrong place,
so changes to the DSCR by the guest didn't persist across guest exit
and entry, and some host kernel memory got corrupted.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/powerpc/kvm/book3s_hv_rmhandlers.S