Skip to contentSkip to conversation

kvm:ppc: enable doorbell exception with E500MC

PATCH Superseded Tiejun Chen 2 participants 4 messages May 6, 2013 – May 7, 2013

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm:ppc: enable doorbell exception with E500MC

Actually E500MC also support doorbell exception, and CONFIG_PPC_E500MC can cover BOOK3E/BOOK3E_64 as well.

---
 arch/powerpc/kvm/booke.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kvm/booke.c +1 -1
index 1020119..dc1f590 100644
@@ -795,7 +795,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_E500MC)
 	case BOOKE_INTERRUPT_DOORBELL:
 		kvmppc_fill_pt_regs(&regs);
 		doorbell_exception(&regs);
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 13 lines · Tiejun Chen

Actually E500MC also support doorbell exception, and CONFIG_PPC_E500MC can cover BOOK3E/BOOK3E_64 as well.

---
  arch/powerpc/kvm/booke.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kvm/booke.c +0 -0
index 1020119..dc1f590 100644

arch/powerpc/kvm/booke.c static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu, · line 798

Quoted 5 lines
arch/powerpc/kvm/booke.c +1 -1
@@ -795,7 +795,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_E500MC)

I suppose you mean CONFIG_KVM_E500MC here? Why didn't this work for you before? The ifdef above should cover the same range of CPUs.

Alex

#2 lore raw
Quoted 9 lines · Alexander Graf
Quoted 8 lines · Tiejun Chen

Actually E500MC also support doorbell exception, and CONFIG_PPC_E500MC can cover BOOK3E/BOOK3E_64 as well.

---
  arch/powerpc/kvm/booke.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 12 lines

arch/powerpc/kvm/booke.c static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu, · line 798

Quoted 10 lines
arch/powerpc/kvm/booke.c +1 -1
index 1020119..dc1f590 100644
@@ -795,7 +795,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_E500MC)

I suppose you mean CONFIG_KVM_E500MC here? Why didn't this work for you before?

This works for me.

Here I just mean currently CONFIG_PPC_E500MC is always selected no matter what CONFIG_PPC_FSL_BOOK3E or CONFIG_PPC_BOOK3E_64 is enabled. And especially, this is already in the arch/powerpc/kvm/booke.c file, so I think one #ifdef (CONFIG_PPC_E500MC) is enough and also makes sense.

Quoted 1 line

The ifdef above should cover the same range of CPUs.

Or furthermore, the #ifdef CONFIG_PPC_DOORBELL is reasonable to cover this.

Tiejun

#3 lore raw
Quoted 25 lines · tiejun.chen
Quoted 9 lines · Alexander Graf
Quoted 8 lines · Tiejun Chen

Actually E500MC also support doorbell exception, and CONFIG_PPC_E500MC can cover BOOK3E/BOOK3E_64 as well.

---
  arch/powerpc/kvm/booke.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 12 lines

arch/powerpc/kvm/booke.c static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu, · line 798

Quoted 10 lines
arch/powerpc/kvm/booke.c +1 -1
index 1020119..dc1f590 100644
@@ -795,7 +795,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_E500MC)

I suppose you mean CONFIG_KVM_E500MC here? Why didn't this work for you before?

This works for me.

Quoted 9 lines

Here I just mean currently CONFIG_PPC_E500MC is always selected no matter what CONFIG_PPC_FSL_BOOK3E or CONFIG_PPC_BOOK3E_64 is enabled. And especially, this is already in the arch/powerpc/kvm/booke.c file, so I think one #ifdef (CONFIG_PPC_E500MC) is enough and also makes sense.

Quoted 1 line

The ifdef above should cover the same range of CPUs.

Or furthermore, the #ifdef CONFIG_PPC_DOORBELL is reasonable to cover this.

I think this may be better so I send next version with this. So please take a look at.

Tiejun