All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: PPC: add missing pt_regs initialization
@ 2015-05-18 12:44 ` Laurentiu Tudor
  0 siblings, 0 replies; 4+ messages in thread
From: Laurentiu Tudor @ 2015-05-18 12:44 UTC (permalink / raw)
  To: kvm-ppc, Alexander Graf; +Cc: Laurentiu Tudor, Scott Wood, Mihai Caraman, kvm

On this switch branch the regs initialization
doesn't happen so add it.
This was found with the help of a static
code analysis tool.

Signed-off-by: Laurentiu Tudor <Laurentiu.Tudor@freescale.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Mihai Caraman <mihai.caraman@freescale.com>
---
 arch/powerpc/kvm/booke.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c
index 6c1316a..55e62fb 100644
--- a/arch/powerpc/kvm/booke.c
+++ b/arch/powerpc/kvm/booke.c
@@ -933,6 +933,7 @@ static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu,
 #endif
 		break;
 	case BOOKE_INTERRUPT_CRITICAL:
+		kvmppc_fill_pt_regs(&regs);
 		unknown_exception(&regs);
 		break;
 	case BOOKE_INTERRUPT_DEBUG:
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] KVM: PPC: add missing pt_regs initialization
@ 2015-05-18 12:44 ` Laurentiu Tudor
  0 siblings, 0 replies; 4+ messages in thread
From: Laurentiu Tudor @ 2015-05-18 12:44 UTC (permalink / raw)
  To: kvm-ppc, Alexander Graf; +Cc: Laurentiu Tudor, Scott Wood, Mihai Caraman, kvm

On this switch branch the regs initialization
doesn't happen so add it.
This was found with the help of a static
code analysis tool.

Signed-off-by: Laurentiu Tudor <Laurentiu.Tudor@freescale.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Mihai Caraman <mihai.caraman@freescale.com>
---
 arch/powerpc/kvm/booke.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c
index 6c1316a..55e62fb 100644
--- a/arch/powerpc/kvm/booke.c
+++ b/arch/powerpc/kvm/booke.c
@@ -933,6 +933,7 @@ static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu,
 #endif
 		break;
 	case BOOKE_INTERRUPT_CRITICAL:
+		kvmppc_fill_pt_regs(&regs);
 		unknown_exception(&regs);
 		break;
 	case BOOKE_INTERRUPT_DEBUG:
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] KVM: PPC: add missing pt_regs initialization
  2015-05-18 12:44 ` Laurentiu Tudor
@ 2015-05-25 22:05   ` Alexander Graf
  -1 siblings, 0 replies; 4+ messages in thread
From: Alexander Graf @ 2015-05-25 22:05 UTC (permalink / raw)
  To: Laurentiu Tudor, kvm-ppc; +Cc: Laurentiu Tudor, Scott Wood, Mihai Caraman, kvm



On 18.05.15 14:44, Laurentiu Tudor wrote:
> On this switch branch the regs initialization
> doesn't happen so add it.
> This was found with the help of a static
> code analysis tool.
> 
> Signed-off-by: Laurentiu Tudor <Laurentiu.Tudor@freescale.com>
> Cc: Scott Wood <scottwood@freescale.com>
> Cc: Mihai Caraman <mihai.caraman@freescale.com>

Thanks, applied to kvm-ppc-queue.


Alex

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] KVM: PPC: add missing pt_regs initialization
@ 2015-05-25 22:05   ` Alexander Graf
  0 siblings, 0 replies; 4+ messages in thread
From: Alexander Graf @ 2015-05-25 22:05 UTC (permalink / raw)
  To: Laurentiu Tudor, kvm-ppc; +Cc: Laurentiu Tudor, Scott Wood, Mihai Caraman, kvm



On 18.05.15 14:44, Laurentiu Tudor wrote:
> On this switch branch the regs initialization
> doesn't happen so add it.
> This was found with the help of a static
> code analysis tool.
> 
> Signed-off-by: Laurentiu Tudor <Laurentiu.Tudor@freescale.com>
> Cc: Scott Wood <scottwood@freescale.com>
> Cc: Mihai Caraman <mihai.caraman@freescale.com>

Thanks, applied to kvm-ppc-queue.


Alex

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-25 22:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-18 12:44 [PATCH] KVM: PPC: add missing pt_regs initialization Laurentiu Tudor
2015-05-18 12:44 ` Laurentiu Tudor
2015-05-25 22:05 ` Alexander Graf
2015-05-25 22:05   ` Alexander Graf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.