From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bocSB-0007mB-74 for qemu-devel@nongnu.org; Mon, 26 Sep 2016 16:24:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bocS7-0004Bm-03 for qemu-devel@nongnu.org; Mon, 26 Sep 2016 16:24:42 -0400 Received: from smtp2-g21.free.fr ([212.27.42.2]:43078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bocS6-00046I-OM for qemu-devel@nongnu.org; Mon, 26 Sep 2016 16:24:38 -0400 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Mon, 26 Sep 2016 22:23:22 +0200 Message-Id: <1474921408-24710-1-git-send-email-hpoussin@reactos.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 0/6] intc: change 'info irq' and 'info pic' to be target-agnostic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Luiz Capitulino , Paolo Bonzini , =?UTF-8?q?Herv=C3=A9=20Poussineau?= Hi, This patchset aims at genericizing the 'info irq' and 'info pic' HMP comm= ands, so that it is available on all machines and can display details about more t= han 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 co= ntrollers 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 c= an get details about multiple interrupt controllers per machine starting here. Patch 6 makes 'info irq'/'info pic' commands available on all architectur= es. For example, Alpha clipper machine is now able to display details about t= he i8259 interrupt controller. Changes since v1: - renamed interface from IntCtrl to InterruptStatsProvider Herv=C3=A9 Herv=C3=A9 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 --=20 2.1.4