diff options
author | Haibin Wang <wanghaibin.wang@huawei.com> | 2014-04-10 08:14:32 -0400 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2014-04-28 06:30:46 -0400 |
commit | 91021a6c8ffdc55804dab5acdfc7de4f278b9ac3 (patch) | |
tree | 27b92faadc82c3a01d153d8370105de4901fb8b4 | |
parent | 5d4e08c45a6cf8f1ab3c7fa375007635ac569165 (diff) |
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: <stable@vger.kernel.org> # 3.10+
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>
-rw-r--r-- | virt/kvm/arm/vgic.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
916 | case 0: | 916 | case 0: |
917 | if (!target_cpus) | 917 | if (!target_cpus) |
918 | return; | 918 | return; |
919 | break; | ||
919 | 920 | ||
920 | case 1: | 921 | case 1: |
921 | target_cpus = ((1 << nrcpus) - 1) & ~(1 << vcpu_id) & 0xff; | 922 | target_cpus = ((1 << nrcpus) - 1) & ~(1 << vcpu_id) & 0xff; |