KVM: PPC: Book3S PR: Fix contents of SRR1 when injecting a program exception
authorThomas Huth <thuth@redhat.com>
Thu, 19 May 2016 09:33:31 +0000 (11:33 +0200)
committerPaul Mackerras <paulus@ozlabs.org>
Mon, 20 Jun 2016 04:11:25 +0000 (14:11 +1000)
commitb69890d18fa33a53cec6ae5c93555ee0c24fe0a9
treec67aa3cbe0695cd4ba5ff6716228ff7bd176e5de
parent708e75a3ee750dce1072134e630d66c4e6eaf63c
KVM: PPC: Book3S PR: Fix contents of SRR1 when injecting a program exception

vcpu->arch.shadow_srr1 only contains usable values for injecting
a program exception into the guest if we entered the function
kvmppc_handle_exit_pr() with exit_nr == BOOK3S_INTERRUPT_PROGRAM.
In other cases, the shadow_srr1 bits are zero. Since we want to
pass an illegal-instruction program check to the guest, set
"flags" to SRR1_PROGILL for these other cases.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_pr.c
This page took 0.025263 seconds and 5 git commands to generate.