On 2024/8/6 22:11, Zenghui Yu wrote:
@@ -112,7 +113,7 @@ static bool end_of_vgic(struct vgic_state_iter *iter) return iter->dist_id > 0 && iter->vcpu_id == iter->nr_cpus && iter->intid >= (iter->nr_spis + VGIC_NR_PRIVATE_IRQS) && - iter->lpi_idx > iter->nr_lpis; + (iter->lpi_idx > iter->nr_lpis || !iter->nr_lpis);
And this should actually be written as: iter->lpi_idx >= iter->nr_lpis even in the first commit adding the LPI status in debugfs (e294cb3a6d1a) if I understand it correctly. I will give it a bit more tests tomorrow..