diff options
author | Mihai Caraman <mihai.caraman@freescale.com> | 2013-08-08 08:56:09 -0400 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-01-07 19:15:29 -0500 |
commit | 228b1a473037c89d524e03a569c688a22241b4ea (patch) | |
tree | 89148336fa415353ad442861ab17d4beda3f8973 /arch/powerpc/kvm | |
parent | dece8ada993e1764a115bdff0f1effffaa5fc8dc (diff) |
powerpc/booke64: Add LRAT error exception handler
LRAT (Logical to Real Address Translation) present in MMU v2 provides hardware
translation from a logical page number (LPN) to a real page number (RPN) when
tlbwe is executed by a guest or when a page table translation occurs from a
guest virtual address.
Add LRAT error exception handler to Booke3E 64-bit kernel and the basic KVM
handler to avoid build breakage. This is a prerequisite for KVM LRAT support
that will follow.
Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'arch/powerpc/kvm')
-rw-r--r-- | arch/powerpc/kvm/bookehv_interrupts.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/bookehv_interrupts.S b/arch/powerpc/kvm/bookehv_interrupts.S index e8ed7d659c55..a0d6929d8678 100644 --- a/arch/powerpc/kvm/bookehv_interrupts.S +++ b/arch/powerpc/kvm/bookehv_interrupts.S | |||
@@ -319,6 +319,8 @@ kvm_handler BOOKE_INTERRUPT_DEBUG, EX_PARAMS(DBG), \ | |||
319 | SPRN_DSRR0, SPRN_DSRR1, 0 | 319 | SPRN_DSRR0, SPRN_DSRR1, 0 |
320 | kvm_handler BOOKE_INTERRUPT_DEBUG, EX_PARAMS(CRIT), \ | 320 | kvm_handler BOOKE_INTERRUPT_DEBUG, EX_PARAMS(CRIT), \ |
321 | SPRN_CSRR0, SPRN_CSRR1, 0 | 321 | SPRN_CSRR0, SPRN_CSRR1, 0 |
322 | kvm_handler BOOKE_INTERRUPT_LRAT_ERROR, EX_PARAMS(GEN), \ | ||
323 | SPRN_SRR0, SPRN_SRR1, (NEED_EMU | NEED_DEAR | NEED_ESR) | ||
322 | #else | 324 | #else |
323 | /* | 325 | /* |
324 | * For input register values, see arch/powerpc/include/asm/kvm_booke_hv_asm.h | 326 | * For input register values, see arch/powerpc/include/asm/kvm_booke_hv_asm.h |