From: "Hervé Poussineau" <hpoussin@reactos.org>
To: qemu-devel@nongnu.org
Cc: "Luiz Capitulino" <lcapitulino@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Hervé Poussineau" <hpoussin@reactos.org>
Subject: [Qemu-devel] [PATCH v2 0/6] intc: change 'info irq' and 'info pic' to be target-agnostic
Date: Mon, 26 Sep 2016 22:23:22 +0200 [thread overview]
Message-ID: <1474921408-24710-1-git-send-email-hpoussin@reactos.org> (raw)
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
--
2.1.4
next reply other threads:[~2016-09-26 20:24 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-26 20:23 Hervé Poussineau [this message]
2016-09-26 20:23 ` [Qemu-devel] [PATCH v2 1/6] intc: add an interface to gather statistics/informations on interrupt controllers Hervé Poussineau
2016-09-26 20:23 ` [Qemu-devel] [PATCH v2 2/6] intc/i8259: implement InterruptStatsProvider interface Hervé Poussineau
2016-09-27 4:11 ` David Gibson
2016-09-27 18:49 ` Hervé Poussineau
2016-09-28 1:37 ` David Gibson
2016-09-28 5:22 ` Hervé Poussineau
2016-09-28 7:29 ` David Gibson
2016-09-26 20:23 ` [Qemu-devel] [PATCH v2 3/6] intc/slavio_intctl: " Hervé Poussineau
2016-09-27 14:53 ` Artyom Tarasenko
2016-09-27 18:39 ` Hervé Poussineau
2016-09-28 8:35 ` Artyom Tarasenko
2016-09-26 20:23 ` [Qemu-devel] [PATCH v2 4/6] intc/lm32_pic: " Hervé Poussineau
2016-09-26 20:23 ` [Qemu-devel] [PATCH v2 5/6] intc: make HMP 'info irq' and 'info pic' commands use " Hervé Poussineau
2016-09-30 11:23 ` Paolo Bonzini
2016-09-26 20:23 ` [Qemu-devel] [PATCH v2 6/6] intc: make HMP 'info irq' and 'info pic' commands available on all targets Hervé Poussineau
2016-09-27 4:08 ` [Qemu-devel] [PATCH v2 0/6] intc: change 'info irq' and 'info pic' to be target-agnostic David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1474921408-24710-1-git-send-email-hpoussin@reactos.org \
--to=hpoussin@reactos.org \
--cc=lcapitulino@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.