@@ -941,6 +941,7 @@ long arch_do_vcpu_op(int cmd, struct vcpu *v, XEN_GUEST_HANDLE_PARAM(void) arg)
void arch_dump_vcpu_info(struct vcpu *v)
{
gic_dump_info(v);
+ gic_dump_vgic_info(v);
}
void vcpu_mark_events_pending(struct vcpu *v)
@@ -400,6 +400,17 @@ void gic_inject(void)
gic_hw_ops->update_hcr_status(GICH_HCR_UIE, true);
}
+void gic_dump_vgic_info(struct vcpu *v)
+{
+ struct pending_irq *p;
+
+ list_for_each_entry ( p, &v->arch.vgic.inflight_irqs, inflight )
+ printk("Inflight irq=%u lr=%u\n", p->irq, p->lr);
+
+ list_for_each_entry( p, &v->arch.vgic.lr_pending, lr_queue )
+ printk("Pending irq=%d\n", p->irq);
+}
+
/*
* Local variables:
* mode: C
@@ -443,20 +443,8 @@ static void maintenance_interrupt(int irq, void *dev_id, struct cpu_user_regs *r
void gic_dump_info(struct vcpu *v)
{
- struct pending_irq *p;
-
printk("GICH_LRs (vcpu %d) mask=%"PRIx64"\n", v->vcpu_id, v->arch.lr_mask);
gic_hw_ops->dump_state(v);
-
- list_for_each_entry ( p, &v->arch.vgic.inflight_irqs, inflight )
- {
- printk("Inflight irq=%u lr=%u\n", p->irq, p->lr);
- }
-
- list_for_each_entry( p, &v->arch.vgic.lr_pending, lr_queue )
- {
- printk("Pending irq=%d\n", p->irq);
- }
}
void init_maintenance_interrupt(void)
@@ -285,6 +285,7 @@ extern void send_SGI_allbutself(enum gic_sgi sgi);
/* print useful debug info */
extern void gic_dump_info(struct vcpu *v);
+extern void gic_dump_vgic_info(struct vcpu *v);
/* Number of interrupt lines */
extern unsigned int gic_number_lines(void);