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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Oct 2013 08:02:25 +0000 (09:02 +0100)
commit2eec4f8e8f10e97104649c0a8fa0fbf6f3f51792
tree4b6f82363fc7d75e1a90ab44d3c870da74f68963
parent85005d18bddd858908230089476d64fc8ecb47aa
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kvm/book3s_hv_rmhandlers.S