KVM: PPC: Book3S PR: Transition to Suspended state when injecting interrupt
authorSimon Guo <wei.guo.simon@gmail.com>
Wed, 23 May 2018 07:01:51 +0000 (15:01 +0800)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 1 Jun 2018 00:29:22 +0000 (10:29 +1000)
commit25ddda07b6e55a12065631e20f7f1e198230502f
tree00351ee751d03471f5c356ff56fdad86e2f823be
parentcaa3be92bebc5b87a221900ac408aa99b0badf3d
KVM: PPC: Book3S PR: Transition to Suspended state when injecting interrupt

This patch simulates interrupt behavior per Power ISA while injecting
interrupt in PR KVM:
- When interrupt happens, transactional state should be suspended.

kvmppc_mmu_book3s_64_reset_msr() will be invoked when injecting an
interrupt. This patch performs this ISA logic in
kvmppc_mmu_book3s_64_reset_msr().

Signed-off-by: Simon Guo <wei.guo.simon@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_64_mmu.c