From: Paul Mackerras Date: Fri, 24 Jun 2016 09:21:57 +0000 Subject: Re: [PATCH v2] KVM: PPC: Fix contents of SRR1 when injecting a program exception in kvm-pr Message-Id: <20160624092157.GE26584@fergus.ozlabs.ibm.com> List-Id: References: <1463650411-13597-1-git-send-email-thuth@redhat.com> In-Reply-To: <1463650411-13597-1-git-send-email-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Thomas Huth Cc: Alexander Graf , kvm-ppc@vger.kernel.org, kvm@vger.kernel.org, lvivier@redhat.com On Thu, May 19, 2016 at 11:33:31AM +0200, Thomas Huth wrote: > 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 Thanks, applied to my kvm-ppc-next branch. Paul.