Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91021a6c authored by Haibin Wang's avatar Haibin Wang Committed by Christoffer Dall
Browse files

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: default avatarHaibin Wang <wanghaibin.wang@huawei.com>
Acked-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
Signed-off-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
parent 5d4e08c4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;