mirror of
https://github.com/qemu/qemu.git
synced 2025-01-15 18:13:38 +08:00
HMP pull 2018-09-25
-----BEGIN PGP SIGNATURE----- iQIcBAABAgAGBQJbqkH9AAoJEAUWMx68W/3nqh4P/2Ip8VUzK7aDKpqZgRHTMbI5 78x1iT3fClv008oThRcpoHiqH9DNrq0EXW4TixUXhqIhwxJaNmr2r54WsaNJeTVZ ww8m4Z3BAiFp9GSWQa8Mb6mMNnBVj2KNkSo6NFttmHUZbkafROBGqumer1Nbid3U X68mvy/y3dECRVfqGf3PzSIz5K+pSxgXFGzlbtjSX9CJO/a/o+YsuHLlk4CiVDq6 txYNJ5hgyFieYxgUE03P2PAC+bHbv6hvwSB3sWDfdcTZZmeLxUM6CGG4WdbWqm3r ylmKVwBnrD13YbbWmPNpSFJKXg9Qf9KklKshag4+AhZ3HQDj4HGxQaB8m7lRQwII dw2LaO5wP6011fZ54cvYGMq87xYtqkLWUHD2Et39lSukfLuHtEQ4erSa99MVRrMK svuIfTe7uqfatgC6y0IugxlThqjkQiftG+CVL20nje+h5MFB/huh7eDE9kNrgUSg q6yxO67OgRuSy5vWUrQ4U+WZtiNIh3HjXf/SWUfsTxQk6SweIVuknyLPUxropLYe Zj0G/8sInxSTZQArpe0cXbZL279ppQ0xCwcKRxAO/UMLNqh+7diUQurAWBl80Exb qnW2wCrVB9W/EFDkjdFcAdW5SMxEpaKg45U6tdYqngC+p7yjVNlyltFP/Ew2eHKr uvO+ylONOJZtYwkjhLEJ =Pwfd -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/dgilbert/tags/pull-hmp-20180925' into staging HMP pull 2018-09-25 # gpg: Signature made Tue 25 Sep 2018 15:11:09 BST # gpg: using RSA key 0516331EBC5BFDE7 # gpg: Good signature from "Dr. David Alan Gilbert (RH2) <dgilbert@redhat.com>" # Primary key fingerprint: 45F5 C71B 4A0C B7FB 977A 9FA9 0516 331E BC5B FDE7 * remotes/dgilbert/tags/pull-hmp-20180925: qmp, hmp: add PCI subsystem id and vendor id to PCI info hmp: fix migrate status timer leak monitor: print message when using 'help' with an unknown command Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
0a736f7ab8
3
hmp.c
3
hmp.c
@ -824,6 +824,8 @@ static void hmp_info_pci_device(Monitor *mon, const PciDeviceInfo *dev)
|
||||
|
||||
monitor_printf(mon, ": PCI device %04" PRIx64 ":%04" PRIx64 "\n",
|
||||
dev->id->vendor, dev->id->device);
|
||||
monitor_printf(mon, " PCI subsystem %04" PRIx64 ":%04" PRIx64 "\n",
|
||||
dev->id->subsystem_vendor, dev->id->subsystem);
|
||||
|
||||
if (dev->has_irq) {
|
||||
monitor_printf(mon, " IRQ %" PRId64 ".\n", dev->irq);
|
||||
@ -2001,6 +2003,7 @@ static void hmp_migrate_status_cb(void *opaque)
|
||||
}
|
||||
monitor_resume(status->mon);
|
||||
timer_del(status->timer);
|
||||
timer_free(status->timer);
|
||||
g_free(status);
|
||||
}
|
||||
|
||||
|
@ -1737,6 +1737,9 @@ static PciDeviceInfo *qmp_query_pci_device(PCIDevice *dev, PCIBus *bus,
|
||||
info->id = g_new0(PciDeviceId, 1);
|
||||
info->id->vendor = pci_get_word(dev->config + PCI_VENDOR_ID);
|
||||
info->id->device = pci_get_word(dev->config + PCI_DEVICE_ID);
|
||||
info->id->subsystem = pci_get_word(dev->config + PCI_SUBSYSTEM_ID);
|
||||
info->id->subsystem_vendor =
|
||||
pci_get_word(dev->config + PCI_SUBSYSTEM_VENDOR_ID);
|
||||
info->regions = qmp_query_pci_regions(dev);
|
||||
info->qdev_id = g_strdup(dev->qdev.id ? dev->qdev.id : "");
|
||||
|
||||
|
@ -952,6 +952,7 @@ static void help_cmd_dump(Monitor *mon, const mon_cmd_t *cmds,
|
||||
char **args, int nb_args, int arg_index)
|
||||
{
|
||||
const mon_cmd_t *cmd;
|
||||
size_t i;
|
||||
|
||||
/* No valid arg need to compare with, dump all in *cmds */
|
||||
if (arg_index >= nb_args) {
|
||||
@ -973,9 +974,15 @@ static void help_cmd_dump(Monitor *mon, const mon_cmd_t *cmds,
|
||||
} else {
|
||||
help_cmd_dump_one(mon, cmd, args, arg_index);
|
||||
}
|
||||
break;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* Command not found */
|
||||
monitor_printf(mon, "unknown command: '");
|
||||
for (i = 0; i <= arg_index; i++) {
|
||||
monitor_printf(mon, "%s%s", args[i], i == arg_index ? "'\n" : " ");
|
||||
}
|
||||
}
|
||||
|
||||
static void help_cmd(Monitor *mon, const char *name)
|
||||
|
@ -832,10 +832,15 @@
|
||||
#
|
||||
# @vendor: the PCI vendor id
|
||||
#
|
||||
# @subsystem: the PCI subsystem id (since 3.1)
|
||||
#
|
||||
# @subsystem-vendor: the PCI subsystem vendor id (since 3.1)
|
||||
#
|
||||
# Since: 2.4
|
||||
##
|
||||
{ 'struct': 'PciDeviceId',
|
||||
'data': {'device': 'int', 'vendor': 'int'} }
|
||||
'data': {'device': 'int', 'vendor': 'int', 'subsystem': 'int',
|
||||
'subsystem-vendor': 'int'} }
|
||||
|
||||
##
|
||||
# @PciDeviceInfo:
|
||||
|
Loading…
Reference in New Issue
Block a user