aboutsummaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorHaibin Wang <wanghaibin.wang@huawei.com>2014-04-10 13:14:32 +0100
committerShow Liu <show.liu@linaro.org>2014-06-18 11:42:53 +0800
commita28d75cb04ae7040aca228d08abf9d488cde0902 (patch)
treed63c87cbac590f29f3dbe2915b783029f0c05831 /virt
parent27f5c10112175f5cbccfe3855c80764fb44b8b0c (diff)
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 <wanghaibin.wang@huawei.com> Acked-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/arm/vgic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c
index 8ca405cd7c1..26954a7d9b0 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;