From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MhOa5-0000lE-Id for qemu-devel@nongnu.org; Sat, 29 Aug 2009 10:07:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MhOa5-0000km-8E for qemu-devel@nongnu.org; Sat, 29 Aug 2009 10:07:01 -0400 Received: from [199.232.76.173] (port=47290 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhOa3-0000kh-U8 for qemu-devel@nongnu.org; Sat, 29 Aug 2009 10:06:59 -0400 Received: from ey-out-1920.google.com ([74.125.78.144]:57436) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MhOa3-0002v5-CG for qemu-devel@nongnu.org; Sat, 29 Aug 2009 10:06:59 -0400 Received: by ey-out-1920.google.com with SMTP id 13so614780eye.14 for ; Sat, 29 Aug 2009 07:06:58 -0700 (PDT) MIME-Version: 1.0 From: Blue Swirl Date: Sat, 29 Aug 2009 17:06:38 +0300 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: [Qemu-devel] [PATCH, RFC 0/5] Improve device info handling List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Hello, Current monitor assumes certain functions are always available. Because of the shortcomings of the API, devices have to keep some kind of global state available with static variables, which is ugly. Add info command registration to the API and make some devices use it. User visible monitor commands change: 'info' is replaced by 'dev_info' and also the parameter name may change, for example 'pic' becomes 'i8259.state'. I'm not too happy about this, maybe 'info' should also handle registered devices. Blue Swirl (5): monitor: add device info infrastructure x86/Sparc32: use device info for pic and irq PCI: use device info x86: use device info for hpet PPC: use device info for CPU statistics cpu-all.h | 3 -- hw/an5206.c | 9 ------ hw/arm_pic.c | 10 ------ hw/cris_pic_cpu.c | 5 --- hw/i8259.c | 41 ++++++++++++++------------ hw/microblaze_pic_cpu.c | 5 --- hw/pc.c | 7 ++++ hw/pc.h | 2 - hw/pci.c | 46 +++++++++++++++--------------- hw/pci.h | 2 - hw/shix.c | 10 ------ hw/slavio_intctl.c | 16 ++++------ hw/sun4c_intctl.c | 6 ++- hw/sun4m.c | 15 +--------- hw/sun4m.h | 8 ----- hw/sun4u.c | 8 ----- monitor.c | 72 ++++++++++++++++++++++++++-------------------- monitor.h | 5 +++ qemu-monitor.hx | 17 ++++------ target-ppc/cpu.h | 2 + target-ppc/helper.c | 1 + target-ppc/translate.c | 40 +++++++++++++++---------- vl.c | 8 ++-- 23 files changed, 147 insertions(+), 191 deletions(-)