mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 18:05:37 +00:00
![Daniel P. Berrangé](/assets/img/avatar_default.png)
This is a counterpart to the HMP "info usb" command. It is being added with an "x-" prefix because this QMP command is intended as an adhoc debugging tool and will thus not be modelled in QAPI as fully structured data, nor will it have long term guaranteed stability. The existing HMP command is rewritten to call the QMP command. Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
34 lines
739 B
C
34 lines
739 B
C
/*
|
|
* QEMU USB device emulation stubs
|
|
*
|
|
* Copyright (C) 2021 Philippe Mathieu-Daudé <f4bug@amsat.org>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "qemu/error-report.h"
|
|
#include "qapi/error.h"
|
|
#include "qapi/qapi-commands-machine.h"
|
|
#include "sysemu/sysemu.h"
|
|
#include "monitor/monitor.h"
|
|
#include "hw/usb.h"
|
|
|
|
USBDevice *usbdevice_create(const char *driver)
|
|
{
|
|
error_report("Support for USB devices not built-in");
|
|
|
|
return NULL;
|
|
}
|
|
|
|
HumanReadableText *qmp_x_query_usb(Error **errp)
|
|
{
|
|
error_setg(errp, "Support for USB devices not built-in");
|
|
return NULL;
|
|
}
|
|
|
|
void hmp_info_usb(Monitor *mon, const QDict *qdict)
|
|
{
|
|
monitor_printf(mon, "Support for USB devices not built-in\n");
|
|
}
|