arm/arm64: KVM: vgic: kick the specific vcpu instead of iterating through all
authorShannon Zhao <zhaoshenglong@huawei.com>
Mon, 4 May 2015 01:25:15 +0000 (09:25 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 May 2015 11:07:33 +0000 (07:07 -0400)
commitd4d53f72fa6bcb4a92a134bed97b07ea3e154840
tree6ca61d1447c22f9887aa1f99ab7fe2f7deff4e7e
parentc0a5bdaba1bc306b9fe5f69813948efc6f6396b4
arm/arm64: KVM: vgic: kick the specific vcpu instead of iterating through all

commit 016ed39c54b8a3db680e5c6a43419f806133caf2 upstream.

When call kvm_vgic_inject_irq to inject interrupt, we can known which
vcpu the interrupt for by the irq_num and the cpuid. So we should just
kick this vcpu to avoid iterating through all.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
virt/kvm/arm/vgic.c