Skip to content

intc: change 'info irq' and 'info pic' to be target-agnostic

Hervé Poussineau qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 10 repliesIn review
  2. v16 patches 1 replySuperseded

Changes in v2 from the cover letter

- renamed interface from IntCtrl to InterruptStatsProvider

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6intc: add an interface to gather statistics/informations on interrupt controllershw/intc/Makefile.objs hw/intc/intc.c include/hw/intc/intc.h+72 -00 replies
2/6intc/i8259: implement InterruptStatsProvider interfacehw/intc/i8259.c+37 -05 replies
3/6intc/slavio_intctl: implement InterruptStatsProvider interfacehw/intc/slavio_intctl.c+35 -03 replies
4/6intc/lm32_pic: implement InterruptStatsProvider interfacehw/intc/lm32_pic.c+28 -40 replies
5/6intc: make HMP 'info irq' and 'info pic' commands use InterruptStatsProvider interfacehmp-commands-info.hx hmp.c hmp.h +8 more+68 -1441 reply
6/6intc: make HMP 'info irq' and 'info pic' commands available on all targetshmp-commands-info.hx+1 -40 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchDavid GibsonArtyom Tarasenko
1/6
2/6R-b
3/6A-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/6] intc: change 'info irq' and 'info pic' to be target-agnostic

Hi,

This patchset aims at genericizing the 'info irq' and 'info pic' HMP commands, so that it is available on all machines and can display details about more than one interrupt controller per machine.

Patch 1 adds a new interface InterruptStatsProvider, which is used to:
- gather statistics for the 'info irq' command
- print some text when 'info pic' is called

Patches 2 to 4 implement InterruptStatsProvider interface on interrupt controllers which have ad-hock code to handle 'info irq'/'info pic' commands.

Patch 5 removes ad-hock code, and replaces it by a generic version. You can get details about multiple interrupt controllers per machine starting here.

Patch 6 makes 'info irq'/'info pic' commands available on all architectures. For example, Alpha clipper machine is now able to display details about the i8259 interrupt controller.

Changes since v1:
- renamed interface from IntCtrl to InterruptStatsProvider

Hervé

Hervé Poussineau (6):
intc: add an interface to gather statistics/informations on interrupt
controllers
intc/i8259: implement InterruptStatsProvider interface intc/slavio_intctl: implement InterruptStatsProvider interface intc/lm32_pic: implement InterruptStatsProvider interface
intc: make HMP 'info irq' and 'info pic' commands use
InterruptStatsProvider interface
intc: make HMP 'info irq' and 'info pic' commands available on all
targets

 hmp-commands-info.hx       | 17 +----------
 hmp.c                      | 65 +++++++++++++++++++++++++++++++++++++++++
 hmp.h                      |  2 ++
 hw/intc/Makefile.objs      |  1 +
 hw/intc/i8259.c            | 73 +++++++++++++++++++++++-----------------------
 hw/intc/intc.c             | 41 ++++++++++++++++++++++++++
 hw/intc/lm32_pic.c         | 63 ++++++++++++++++++---------------------
 hw/intc/slavio_intctl.c    | 67 ++++++++++++++++++++++--------------------
 hw/sparc/sun4m.c           | 15 +---------
 include/hw/i386/pc.h       |  2 --
 include/hw/intc/intc.h     | 30 +++++++++++++++++++
 include/hw/lm32/lm32_pic.h |  3 --
 include/hw/sparc/sun4m.h   |  8 -----
 monitor.c                  |  6 ----
 14 files changed, 241 insertions(+), 152 deletions(-)
 create mode 100644 hw/intc/intc.c
 create mode 100644 include/hw/intc/intc.h
Signature · 1 line
2.1.4