Patchwork KVM: PPC: bookehv: Add ESR flag to Data Storage Interrupt

login
register
mail settings
Submitter Mihai Caraman
Date June 22, 2012, 11:33 p.m.
Message ID <1340407992-29604-1-git-send-email-mihai.caraman@freescale.com>
Download mbox | patch
Permalink /patch/166685/
State New
Headers show

Comments

Mihai Caraman - June 22, 2012, 11:33 p.m.
ESR register is required by Data Storage Interrupt handling code.
Add the specific flag to the interrupt handler.

Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com>
---
 arch/powerpc/kvm/bookehv_interrupts.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Alexander Graf - July 2, 2012, 1:41 p.m.
On 23.06.2012, at 01:33, Mihai Caraman wrote:

> ESR register is required by Data Storage Interrupt handling code.
> Add the specific flag to the interrupt handler.
> 
> Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com>

Thanks, applied to kvm-ppc-next.


Alex

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Caraman Mihai Claudiu-B02008 - July 6, 2012, 4:11 p.m.
> From: Kun Wang [mailto:wangkun@cn.ibm.com] 
> Sent: Friday, July 06, 2012 5:07 PM
> To: Caraman Mihai Claudiu-B02008
> Cc: agraf@suse.de; kvm@vger.kernel.org; kvm-ppc@vger.kernel.org; kvm-ppc-owner@vger.kernel.org
> Subject: Re: [PATCH] KVM: PPC: bookehv: Add ESR flag to Data Storage Interrupt
>
> Mike,
>
> I am going to try your patch on our A2 machine. One quick (and naive) question,
> which git tree am I supposed to apply it to? git://git.kernel.org/pub/scm/virt/kvm/kvm.git?
>
> Best regards,
> Kun Wang

I think you are looking for this patchset, you will find all details there:
       [RFC PATCH 00/17] KVM: PPC: 64-bit Book3E support

Regards,
Mike

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/arch/powerpc/kvm/bookehv_interrupts.S b/arch/powerpc/kvm/bookehv_interrupts.S
index 6048a00..0fa2ef7 100644
--- a/arch/powerpc/kvm/bookehv_interrupts.S
+++ b/arch/powerpc/kvm/bookehv_interrupts.S
@@ -267,7 +267,7 @@  kvm_lvl_handler BOOKE_INTERRUPT_CRITICAL, \
 kvm_lvl_handler BOOKE_INTERRUPT_MACHINE_CHECK, \
 	SPRN_SPRG_RSCRATCH_MC, SPRN_MCSRR0, SPRN_MCSRR1, 0
 kvm_handler BOOKE_INTERRUPT_DATA_STORAGE, \
-	SPRN_SRR0, SPRN_SRR1, (NEED_EMU | NEED_DEAR)
+	SPRN_SRR0, SPRN_SRR1, (NEED_EMU | NEED_DEAR | NEED_ESR)
 kvm_handler BOOKE_INTERRUPT_INST_STORAGE, SPRN_SRR0, SPRN_SRR1, NEED_ESR
 kvm_handler BOOKE_INTERRUPT_EXTERNAL, SPRN_SRR0, SPRN_SRR1, 0
 kvm_handler BOOKE_INTERRUPT_ALIGNMENT, \