|
|
@@ -1102,18 +1102,18 @@ static bool dist_active_irq(struct kvm_vcpu *vcpu)
|
|
|
return test_bit(vcpu->vcpu_id, dist->irq_active_on_cpu);
|
|
|
}
|
|
|
|
|
|
-bool kvm_vgic_map_is_active(struct kvm_vcpu *vcpu, struct irq_phys_map *map)
|
|
|
+bool kvm_vgic_map_is_active(struct kvm_vcpu *vcpu, unsigned int virt_irq)
|
|
|
{
|
|
|
int i;
|
|
|
|
|
|
for (i = 0; i < vcpu->arch.vgic_cpu.nr_lr; i++) {
|
|
|
struct vgic_lr vlr = vgic_get_lr(vcpu, i);
|
|
|
|
|
|
- if (vlr.irq == map->virt_irq && vlr.state & LR_STATE_ACTIVE)
|
|
|
+ if (vlr.irq == virt_irq && vlr.state & LR_STATE_ACTIVE)
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
- return vgic_irq_is_active(vcpu, map->virt_irq);
|
|
|
+ return vgic_irq_is_active(vcpu, virt_irq);
|
|
|
}
|
|
|
|
|
|
/*
|