From 163c8a59f6f9c370b74a81856194757e3773b358 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Thu, 21 Jan 2010 19:15:40 -0200 Subject: PCI: Convert pci_info() to QObject The returned QObject is a QList of all buses. Each bus is represented by a QDict, which has a key with a QList of all PCI devices attached to it. Each device is represented by a QDict. As has happended to other complex conversions, it's hard to split this commit as part of it are new functions which are called by each other. IMPORTANT: support for printing PCI bridge attached devices is NOT part of this commit, it's going to be added by the next commit, as it's untested. Signed-off-by: Luiz Capitulino Signed-off-by: Anthony Liguori --- monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index 2f38601d65..1cdb0c848f 100644 --- a/monitor.c +++ b/monitor.c @@ -2445,7 +2445,8 @@ static const mon_cmd_t info_cmds[] = { .args_type = "", .params = "", .help = "show PCI info", - .mhandler.info = pci_info, + .user_print = do_pci_info_print, + .mhandler.info_new = do_pci_info, }, #if defined(TARGET_I386) || defined(TARGET_SH4) { -- cgit v1.2.3