Skip to content

Commit

Permalink
KVM: PPC: Book3S HV: Check DR not IR to chose real vs virt mode MMIOs
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Jan 19, 2018
1 parent 2267ea7 commit 2662efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kvm/book3s_hv_rmhandlers.S
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,7 @@ mc_cont:
li r7, TM_SPC_PULL_OS_CTX
li r6, TM_QW1_OS
mfmsr r0
andi. r0, r0, MSR_IR /* in real mode? */
andi. r0, r0, MSR_DR /* in real mode? */
beq 2f
ld r10, HSTATE_XIVE_TIMA_VIRT(r13)
cmpldi cr0, r10, 0
Expand Down

0 comments on commit 2662efd

Please sign in to comment.