瀏覽代碼

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>
Haibin Wang 11 年之前
父節點
當前提交
91021a6c8f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      virt/kvm/arm/vgic.c

+ 1 - 0
virt/kvm/arm/vgic.c

@@ -916,6 +916,7 @@ static void vgic_dispatch_sgi(struct kvm_vcpu *vcpu, u32 reg)
 	case 0:
 	case 0:
 		if (!target_cpus)
 		if (!target_cpus)
 			return;
 			return;
+		break;
 
 
 	case 1:
 	case 1:
 		target_cpus = ((1 << nrcpus) - 1) & ~(1 << vcpu_id) & 0xff;
 		target_cpus = ((1 << nrcpus) - 1) & ~(1 << vcpu_id) & 0xff;