When irqchip in kernel is enabled, the register status of irqchip device
is in KVM kernel. Here add interrupt status display in user side in order
to debug ipi/pch_pci/extioi irqchip driver, however interrupt statistic
information is not added here since there is no obvious requirements.
Here is output of command "virsh qemu-monitor-command VM --hmp info pic"
loongarch_ipi:
CPU 0 status=0x0 en=0xffffffff
CPU 1 status=0x0 en=0xffffffff
CPU 2 status=0x0 en=0xffffffff
CPU 3 status=0x0 en=0xffffffff
loongarch_pic:
mask 0xffffffffffffff7b msi_en 0xffffffffffffffff edge 0x0000000000000080
clr 0x0000000000000000
last_irr 0x0000000000000000 irr 0x0000000000000040 isr 0x0000000000000000
polary 0x0000000000000000
MSI map 0x0000040302010000 0x0000000000000000 0x0000000000060500
0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000
loongarch.extioi:
ISR 0x0000000000000000 0x00000061007d0000 0x0000000000000000
0x0000000000000000
ENABLE 0xffffffffffffffff 0xffffffffffffffff 0xffffffffffffffff
0xffffffffffffffff
IPMAP 0x0808040402020101
COREMAP 0x0000000000000003 0x0000000000000000 0x0000000000000000
0x0000000000000000
COREMAP 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000
COREMAP 0x0002010103020202 0x0000030101030300 0x0000030201000203
0x0100010303000000
COREMAP 0x0001030301020302 0x0000000000000000 0x0000000000000000
0x0000000000000000
COREMAP 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000
COREMAP 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000
COREMAP 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000
COREMAP 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000
Bibo Mao (3):
hw/intc/loongarch_ipi: Add ipi interrupt status display
hw/intc/loongarch_pch_pic: Add pic interrupt status display
hw/intc/loongarch_extioi: Add extioi interrupt status display
hw/intc/loongarch_extioi.c | 58 +++++++++++++++++++++++++++++++++++++
hw/intc/loongarch_ipi.c | 42 +++++++++++++++++++++++++++
hw/intc/loongarch_pch_pic.c | 38 ++++++++++++++++++++++++
3 files changed, 138 insertions(+)
base-commit: 324bb5ef83ad5e9026ea3242f99ba53191a7bf3f
--
2.54.0