From: Haibin Wang Date: Thu, 10 Apr 2014 12:14:32 +0000 (+0100) Subject: KVM: ARM: vgic: Fix sgi dispatch problem X-Git-Tag: submit/tizen_common/20140519.165420~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2264ca6c71682e1c0d72a9f21e178204b1e621e4;p=profile%2Fivi%2Fkernel-x86-ivi.git KVM: ARM: vgic: Fix sgi dispatch problem commit 91021a6c8ffdc55804dab5acdfc7de4f278b9ac3 upstream. 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. Signed-off-by: Haibin Wang Acked-by: Marc Zyngier Signed-off-by: Christoffer Dall Signed-off-by: Greg Kroah-Hartman --- diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c index 8ca405c..26954a7 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;