From: Haibin Wang Date: Thu, 10 Apr 2014 12:14:32 +0000 (+0100) Subject: KVM: ARM: vgic: Fix sgi dispatch problem X-Git-Tag: firefly_0821_release~3680^2~36^2~16^2^2~128 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=738a77ae39541495f4d5396ed093bccdebc589f1;p=firefly-linux-kernel-4.4.55.git KVM: ARM: vgic: Fix sgi dispatch problem When dispatch SGI(mode == 0), that is the vcpu of VM should send sgi to the cpu which the target_cpus list. So, there must add the "break" to branch of case 0. Cc: # 3.10+ Signed-off-by: Haibin Wang Acked-by: Marc Zyngier Signed-off-by: Christoffer Dall (cherry picked from commit 91021a6c8ffdc55804dab5acdfc7de4f278b9ac3) Signed-off-by: Christoffer Dall --- diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c index 47b29834a6b6..7e8b44efb739 100644 --- a/virt/kvm/arm/vgic.c +++ b/virt/kvm/arm/vgic.c @@ -916,6 +916,7 @@ static void vgic_dispatch_sgi(struct kvm_vcpu *vcpu, u32 reg) case 0: if (!target_cpus) return; + break; case 1: target_cpus = ((1 << nrcpus) - 1) & ~(1 << vcpu_id) & 0xff;