RFC Improve device info handling v2
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest5 patches 0 repliesNew
v2 from the cover letter
Use a structure to describe the function, thanks to Gerd Hoffmann for the idea.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | monitor: add device info infrastructuremonitor.c monitor.h qemu-monitor.hx +1 more | +37 | 0 replies | |
| 2/5 | x86/Sparc32: use device info for pic and irqhw/ hw/ hw/ +11 more | +7 | 0 replies | |
| 3/5 | PCI: use device infohw/ hw/ monitor.c +1 more | +7 | 0 replies | |
| 4/5 | x86: use device info for hpethw/ monitor.c qemu-monitor.hx | +12 | 0 replies | |
| 5/5 | PPC: use device info for CPU statisticscpu-all.h monitor.c qemu-monitor.hx +3 more | +34 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [PATCH, RFC 0/5] Improve device info handling v2
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.
v2:
Use a structure to describe the function, thanks to Gerd Hoffmann for the idea.
Update to QDict.
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 | 51 +++++++++++++++++++++------------- hw/microblaze_pic_cpu.c | 5 --- hw/pc.c | 12 ++++++++ hw/pc.h | 2 - hw/pci.c | 51 +++++++++++++++++++--------------- hw/pci.h | 2 - hw/shix.c | 10 ------- hw/slavio_intctl.c | 26 +++++++++++------- hw/sun4c_intctl.c | 16 +++++++++- hw/sun4m.c | 15 +--------- hw/sun4m.h | 8 ----- hw/sun4u.c | 8 ----- monitor.c | 70 ++++++++++++++++++++++++++--------------------- monitor.h | 10 +++++++ qemu-monitor.hx | 17 +++++------- target-ppc/cpu.h | 2 + target-ppc/helper.c | 4 +++ target-ppc/translate.c | 45 ++++++++++++++++++++---------- vl.c | 18 ++++++------ 23 files changed, 204 insertions(+), 195 deletions(-)