kvm:ppc: enable doorbell exception with E500MC
Subsystems (3)
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
@@ -795,7 +795,7 @@ static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu,kvmppc_fill_pt_regs (®s);timer_interrupt (®s);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 (®s);doorbell_exception (®s);
Signature · 1 line
1.7.9.5
Quoted 13 lines · Tiejun Chen
Actually E500MC also support doorbell exception, and
CONFIG_PPC_E500MCcan cover BOOK3E/BOOK3E_64 as well.Signed-off-by Tiejun Chen<[email protected]>--- arch/powerpc/kvm/booke.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/powerpc/kvm/booke.c +0
-0
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 (®s);timer_interrupt (®s);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
Quoted 9 lines · Alexander Graf
Quoted 8 lines · Tiejun Chen
Actually E500MC also support doorbell exception, and
CONFIG_PPC_E500MCcan cover BOOK3E/BOOK3E_64 as well.Signed-off-by Tiejun Chen<[email protected]>--- 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@@ -795,7 +795,7 @@ static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu,kvmppc_fill_pt_regs (®s);timer_interrupt (®s);break ; -#if defined(CONFIG_PPC_FSL_BOOK3E ) || defined(CONFIG_PPC_BOOK3E_64 ) +#if defined(CONFIG_PPC_E500MC )I suppose you mean
CONFIG_KVM_E500MChere? 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
Quoted 25 lines · tiejun.chen
Quoted 9 lines · Alexander Graf
Quoted 8 lines · Tiejun Chen
Actually E500MC also support doorbell exception, and
CONFIG_PPC_E500MCcan cover BOOK3E/BOOK3E_64 as well.Signed-off-by Tiejun Chen<[email protected]>--- 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@@ -795,7 +795,7 @@ static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu,kvmppc_fill_pt_regs (®s);timer_interrupt (®s);break ; -#if defined(CONFIG_PPC_FSL_BOOK3E ) || defined(CONFIG_PPC_BOOK3E_64 ) +#if defined(CONFIG_PPC_E500MC )I suppose you mean
CONFIG_KVM_E500MChere? Why didn't this work for you before?This works for me.
Quoted 9 lines
Here I just mean currently
CONFIG_PPC_E500MCis always selected no matter whatCONFIG_PPC_FSL_BOOK3EorCONFIG_PPC_BOOK3E_64is enabled. And especially, this is already in thearch/powerpc/kvm/booke.cfile, 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_DOORBELLis reasonable to cover this.
I think this may be better so I send next version with this. So please take a look at.
Tiejun