Skip to content

Commit

Permalink
monitor/usb: register 'info usbhost' dynamically
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Jose R. Ziviani <jziviani@suse.de>
Message-Id: <20210624103836.2382472-33-kraxel@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
kraxel authored and bonzini committed Jul 9, 2021
1 parent b7b2a60 commit f1a74bf
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 44 deletions.
1 change: 0 additions & 1 deletion hmp-commands-info.hx
Expand Up @@ -368,7 +368,6 @@ ERST
.args_type = "",
.params = "",
.help = "show host USB devices",
.cmd = hmp_info_usbhost,
},

SRST
Expand Down
1 change: 1 addition & 0 deletions hw/usb/host-libusb.c
Expand Up @@ -1781,6 +1781,7 @@ static TypeInfo usb_host_dev_info = {
static void usb_host_register_types(void)
{
type_register_static(&usb_host_dev_info);
monitor_register_hmp("usbhost", true, hmp_info_usbhost);
}

type_init(usb_host_register_types)
Expand Down
40 changes: 0 additions & 40 deletions hw/usb/host-stub.c

This file was deleted.

4 changes: 1 addition & 3 deletions hw/usb/meson.build
Expand Up @@ -73,9 +73,7 @@ endif

# usb pass-through
softmmu_ss.add(when: ['CONFIG_USB', libusb],
if_true: files('host-libusb.c'),
if_false: files('host-stub.c'))
softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('host-stub.c'))
if_true: files('host-libusb.c'))

softmmu_ss.add(when: ['CONFIG_USB', 'CONFIG_XEN', libusb], if_true: files('xen-usb.c'))

Expand Down

0 comments on commit f1a74bf

Please sign in to comment.