diff options
Diffstat (limited to 'virt/kvm/arm/vgic/vgic-debug.c')
-rw-r--r-- | virt/kvm/arm/vgic/vgic-debug.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/virt/kvm/arm/vgic/vgic-debug.c b/virt/kvm/arm/vgic/vgic-debug.c index 10b38178cff2..4ffc0b5e6105 100644 --- a/virt/kvm/arm/vgic/vgic-debug.c +++ b/virt/kvm/arm/vgic/vgic-debug.c | |||
@@ -211,6 +211,7 @@ static int vgic_debug_show(struct seq_file *s, void *v) | |||
211 | struct vgic_state_iter *iter = (struct vgic_state_iter *)v; | 211 | struct vgic_state_iter *iter = (struct vgic_state_iter *)v; |
212 | struct vgic_irq *irq; | 212 | struct vgic_irq *irq; |
213 | struct kvm_vcpu *vcpu = NULL; | 213 | struct kvm_vcpu *vcpu = NULL; |
214 | unsigned long flags; | ||
214 | 215 | ||
215 | if (iter->dist_id == 0) { | 216 | if (iter->dist_id == 0) { |
216 | print_dist_state(s, &kvm->arch.vgic); | 217 | print_dist_state(s, &kvm->arch.vgic); |
@@ -227,9 +228,9 @@ static int vgic_debug_show(struct seq_file *s, void *v) | |||
227 | irq = &kvm->arch.vgic.spis[iter->intid - VGIC_NR_PRIVATE_IRQS]; | 228 | irq = &kvm->arch.vgic.spis[iter->intid - VGIC_NR_PRIVATE_IRQS]; |
228 | } | 229 | } |
229 | 230 | ||
230 | spin_lock(&irq->irq_lock); | 231 | spin_lock_irqsave(&irq->irq_lock, flags); |
231 | print_irq_state(s, irq, vcpu); | 232 | print_irq_state(s, irq, vcpu); |
232 | spin_unlock(&irq->irq_lock); | 233 | spin_unlock_irqrestore(&irq->irq_lock, flags); |
233 | 234 | ||
234 | return 0; | 235 | return 0; |
235 | } | 236 | } |