Skip to contentSkip to conversation

kvm:ppc: control doorbell exception with CONFIG_PPC_DOORBELL

PATCH Applied Tiejun Chen 2 participants 2 messages May 13, 2013 – Jun 12, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 kvm:ppc: control doorbell exception with CONFIG_PPC_DOORBELL

We can only use CONFIG_PPC_DOORBELL to control whether the doorbell exception should be enabled.

---
v3:

Just imporve the patch head.

v2:

Use CONFIG_PPC_DOORBELL to replace CONFIG_KVM_E500MC as that control condition.

 arch/powerpc/kvm/booke.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kvm/booke.c +1 -1
index ac7ab08..2d063c7 100644
@@ -794,7 +794,7 @@ static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu,
 		kvmppc_fill_pt_regs(&regs);
 		timer_interrupt(&regs);
 		break;
-#if defined(CONFIG_PPC_FSL_BOOK3E) || defined(CONFIG_PPC_BOOK3E_64)
+#if defined(CONFIG_PPC_DOORBELL)
 	case BOOKE_INTERRUPT_DOORBELL:
 		kvmppc_fill_pt_regs(&regs);
 		doorbell_exception(&regs);
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 4 lines · Tiejun Chen

We can only use CONFIG_PPC_DOORBELL to control whether the doorbell exception should be enabled.

Thanks, applied to kvm-ppc-queue with a slightly changed patch description:

KVM: PPC: Guard doorbell exception with CONFIG_PPC_DOORBELL

Availablity of the doorbell_exception function is guarded by CONFIG_PPC_DOORBELL. Use the same define to guard our caller of it.

[agraf: improve patch description]