Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: PPC: bookehv: Fix r8/r13 storing in level exception handler

Guest r8 register is held in the scratch register and stored correctly,
so remove the instruction that clobbers it. Guest r13 was missing from vcpu,
store it there.

Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>

authored by

Mihai Caraman and committed by
Alexander Graf
4444aa5f 3b1d9d7d

+1 -1
+1 -1
arch/powerpc/kvm/bookehv_interrupts.S
··· 252 252 mfspr r6, \srr1 253 253 PPC_LL r4, GPR11(r8) 254 254 PPC_STL r7, VCPU_GPR(r7)(r11) 255 - PPC_STL r8, VCPU_GPR(r8)(r11) 256 255 PPC_STL r3, VCPU_GPR(r10)(r11) 257 256 mfctr r7 258 257 PPC_STL r12, VCPU_GPR(r12)(r11) 258 + PPC_STL r13, VCPU_GPR(r13)(r11) 259 259 PPC_STL r4, VCPU_GPR(r11)(r11) 260 260 PPC_STL r7, VCPU_CTR(r11) 261 261 mr r4, r11