usb patch queue
[Qemu-devel] [PULL 2/9] usb: Deprecate the legacy -usbdevice option
In reply to Gerd HoffmannFrom: Thomas Huth <[email protected]>
The '-usbdevice' option is considered as deprecated nowadays and we might want to remove these options in a future version of QEMU. So mark this options as deprecated in the documenation and print out a warning if it is used to tell the user what to use instead. While we're at it, improve also some other minor USB-related spots in qemu-options.hx that were not up to date anymore.
Message-id: [email protected]
--- vl.c | 2 ++ qemu-options.hx | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-)
vl.c +2 -0
@@ -3759,6 +3759,8 @@ int main(int argc, char **argv, char **envp)qemu_opts_parse_noisily (olist,"usb=on" , false);break ;case QEMU_OPTION_usbdevice: +error_report ("'-usbdevice' is deprecated, please use " +"'-device usb-...' instead" ); olist =qemu_find_opts ("machine" );qemu_opts_parse_noisily (olist,"usb=on" , false);add_device_config (DEV_USB , optarg);
qemu-options.hx +5 -4
@@ -980,12 +980,12 @@ STEXI ETEXI DEF("usb", 0, QEMU_OPTION_usb, - "-usb enable the USB driver (will be the default soon)\n", + "-usb enable the USB driver (if it is not used by default yet)\n", QEMU_ARCH_ALL) STEXI @item -usb @findex -usb -Enable the USB driver (will be the default soon) +Enable the USB driver (if it is not used by default yet). ETEXI DEF("usbdevice", HAS_ARG, QEMU_OPTION_usbdevice,
@@ -995,7 +995,8 @@ STEXI @item -usbdevice @var{devname} @findex -usbdevice -Add the USB device @var{devname}. @xref{usb_devices}. +Add the USB device @var{devname}. Note that this option is deprecated, +please use @code{-device usb-...} instead. @xref{usb_devices}. @table @option
@@ -1373,7 +1374,7 @@ output such as guest graphics, guest console, and the QEMU monitor in a window. With this option, you can have QEMU listen on VNC display @var{display} and redirect the VGA display over the VNC session. It is very useful to enable the usb tablet device when using this option -(option @option{-usbdevice tablet}). When using the VNC display, you +(option @option{-device usb-tablet}). When using the VNC display, you must use the @option{-k} parameter to set the keyboard layout if you are not using en-us. Valid syntax for the @var{display} is
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 1/9] ehci: fix overflow in frame timer code
In reply to Gerd HoffmannIn case the frame timer doesn't run for a while due to the host being busy skipped_uframes can become big enough that UFRAME_TIMER_NS * skipped_uframes overflows. Which in turn throws off all subsequent ehci frame timer calculations.
Message-id: [email protected]
--- hw/usb/hcd-ehci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/usb/hcd-ehci.c +1 -1
@@ -2238,7 +2238,7 @@ static void ehci_frame_timer(void *opaque)int need_timer =0 ;int64_t expire_time, t_now;uint64_t ns_elapsed; -int uframes, skipped_uframes; +uint64_t uframes, skipped_uframes;int i; t_now =qemu_clock_get_ns (QEMU_CLOCK_VIRTUAL );
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 3/9] usb: Deprecate HMP commands usb_add and usb_del
In reply to Gerd HoffmannFrom: Thomas Huth <[email protected]>
The commands 'device_add' and 'device_del' should be used nowadays instead.
Message-id: [email protected]
--- vl.c | 6 ++++++ hmp-commands.hx | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-)
vl.c +6 -0
@@ -1436,6 +1436,9 @@ static int usb_parse(const char *cmdline)void hmp_usb_add (Monitor *mon,const QDict *qdict) {const char *devname =qdict_get_str (qdict,"devname" ); + +error_report ("usb_add is deprecated, please use device_add instead" ); +if (usb_device_add (devname) <0 ) {error_report ("could not add USB device '%s'" , devname); }
@@ -1444,6 +1447,9 @@ void hmp_usb_add(Monitor *mon, const QDict *qdict)void hmp_usb_del (Monitor *mon,const QDict *qdict) {const char *devname =qdict_get_str (qdict,"devname" ); + +error_report ("usb_del is deprecated, please use device_del instead" ); +if (usb_device_del (devname) <0 ) {error_report ("could not delete USB device '%s'" , devname); }
hmp-commands.hx +4 -2
@@ -676,7 +676,8 @@ ETEXI STEXI @item usb_add @var{devname} @findex usb_add -Add the USB device @var{devname}. For details of available devices see +Add the USB device @var{devname}. This command is deprecated, please +use @code{device_add} instead. For details of available devices see @ref{usb_devices} ETEXI
@@ -693,7 +694,8 @@ STEXI @findex usb_del Remove the USB device @var{devname} from the QEMU virtual USB hub. @var{devname} has the syntax @code{bus.addr}. Use the monitor -command @code{info usb} to see the devices you can remove. +command @code{info usb} to see the devices you can remove. This +command is deprecated, please use @code{device_del} instead. ETEXI {
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 9/9] ehci: fix frame timer invocation.
In reply to Gerd Hoffmannehci registers ehci_frame_timer as both timer and bottom half, which turned out to be a bad idea as it can be called as bottom half then while it is running as timer, and it isn't prepared to handle recursive calls.
Change the timer func to just schedule the bottom half to avoid this.
Message-id: [email protected]
--- hw/usb/hcd-ehci.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)
hw/usb/hcd-ehci.c +10 -3
@@ -2232,7 +2232,7 @@ static void ehci_update_frindex(EHCIState *ehci, int uframes) ehci->frindex = (ehci->frindex + uframes) %0x4000 ; } -static void ehci_frame_timer (void *opaque) +static void ehci_work_bh (void *opaque) {EHCIState *ehci = opaque;int need_timer =0 ;
@@ -2324,6 +2324,13 @@ static void ehci_frame_timer(void *opaque) } } +static void ehci_work_timer (void *opaque) +{ +EHCIState *ehci = opaque; + +qemu_bh_schedule (ehci->async_bh); +} +static const MemoryRegionOps ehci_mmio_caps_ops = { .read = ehci_caps_read, .write = ehci_caps_write,
@@ -2478,8 +2485,8 @@ void usb_ehci_realize(EHCIState *s, DeviceState *dev, Error **errp) s->ports[i].dev =0 ; } - s->frame_timer =timer_new_ns (QEMU_CLOCK_VIRTUAL , ehci_frame_timer, s); - s->async_bh =qemu_bh_new (ehci_frame_timer, s); + s->frame_timer =timer_new_ns (QEMU_CLOCK_VIRTUAL , ehci_work_timer, s); + s->async_bh =qemu_bh_new (ehci_work_bh, s); s->device = dev; s->vmstate =qemu_add_vm_change_state_handler (usb_ehci_vm_state_change, s);
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 8/9] usb: don't wakeup during coldplug
In reply to Gerd HoffmannMessage-id: [email protected]
--- hw/usb/core.c | 8 ++++++++ 1 file changed, 8 insertions(+)
hw/usb/core.c +8 -0
@@ -98,6 +98,14 @@ void usb_wakeup(USBEndpoint *ep, unsigned int stream)USBDevice *dev = ep->dev;USBBus *bus =usb_bus_from_device (dev); +if (!qdev_hotplug) { +/* +* This is machine init cold plug. No need to wakeup anyone, +* all devices will be reset anyway. And trying to wakeup can +* cause problems due to hitting uninitialized devices. +*/ +return ; + }if (dev->remote_wakeup && dev->port && dev->port->ops->wakeup) { dev->port->ops->wakeup (dev->port); }
Signature · 1 line
2.9.3
Hi,
Here comes the usb patch queue. As usual some bugfixes, legacy options and hmp commands are deprecated, xhci is splitted so nec-xhci can have its own config option.
please pull,
Gerd
The following changes since commit 9964e96dc9999cf7f7c936ee854a795415d19b60:
Merge remote-tracking branch 'jasowang/tags/net-pull-request' into staging (2017-05-23 15:01:31 +0100)
are available in the git repository at:
git://git.kraxel.org/qemu tags/pull-usb-20170529-1
for you to fetch changes up to 3bfecee2cb71f21cd39d6183f18b446c01917573:
ehci: fix frame timer invocation. (2017-05-29 14:19:16 +0200)
----------------------------------------------------------------
usb: depricate legacy options and hmp commands
usb: fixes for ehci and hub, split xhci variants
----------------------------------------------------------------
Gerd Hoffmann (5):
ehci: fix overflow in frame timer code
xhci: split into multiple files
xhci: add CONFIG_USB_XHCI_NEC option
usb: don't wakeup during coldplug
ehci: fix frame timer invocation.
Ladi Prosek (1):
usb-hub: set PORT_STAT_C_SUSPEND on host-initiated wake-up
Thomas Huth (3):
usb: Deprecate the legacy -usbdevice option
usb: Deprecate HMP commands usb_add and usb_del
usb: Simplify the parameter parsing of the legacy usb serial device
hw/usb/hcd-xhci.h | 226 +++++++++++++++++++++++++++++++++++++++++++++ hw/usb/core.c | 8 ++ hw/usb/dev-hub.c | 15 ++- hw/usb/dev-serial.c | 21 +---- hw/usb/hcd-ehci.c | 15 ++- hw/usb/hcd-xhci-nec.c | 63 +++++++++++++ hw/usb/hcd-xhci.c | 238 +----------------------------------------------- vl.c | 8 ++ default-configs/pci.mak | 1 + hmp-commands.hx | 6 +- hw/usb/Makefile.objs | 1 + qemu-options.hx | 9 +- 12 files changed, 348 insertions(+), 263 deletions(-) create mode 100644 hw/usb/hcd-xhci.h create mode 100644 hw/usb/hcd-xhci-nec.c
[Qemu-devel] [PULL 5/9] xhci: split into multiple files
Moved structs and defines to hcd-xhci.h.
Move nec controller variant to hcd-xhci-nec.c.
No functional changes.
Message-id: [email protected]
--- hw/usb/hcd-xhci.h | 226 +++++++++++++++++++++++++++++++++++++++++++++++ hw/usb/hcd-xhci-nec.c | 63 +++++++++++++ hw/usb/hcd-xhci.c | 238 +------------------------------------------------- hw/usb/Makefile.objs | 1 + 4 files changed, 292 insertions(+), 236 deletions(-) create mode 100644 hw/usb/hcd-xhci.h create mode 100644 hw/usb/hcd-xhci-nec.c
hw/usb/hcd-xhci.h new file +226 -0
@@ -0,0 +1,226 @@ +/* +* USB xHCI controller emulation +* +* Copyright (c) 2011 Securiforest +* Date: 2011-05-11 ; Author: Hector Martin <[email protected]> +* Based on usb-ohci.c, emulates Renesas NEC USB 3.0 +* +* This library is free software; you can redistribute it and/or +* modify it under the terms of the GNU Lesser General Public +* License as published by the Free Software Foundation; either +* version 2 of the License, or (at your option) any later version. +* +* This library is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public +* License along with this library; if not, see <http://www.gnu.org/licenses/>. +*/ + +#define TYPE_XHCI "base-xhci" +#define TYPE_NEC_XHCI "nec-usb-xhci" +#define TYPE_QEMU_XHCI "qemu-xhci" + +#define XHCI (obj) \ + OBJECT_CHECK(XHCIState, (obj), TYPE_XHCI) + +#define MAXPORTS_2 15 +#define MAXPORTS_3 15 + +#define MAXPORTS (MAXPORTS_2 + MAXPORTS_3) +#define MAXSLOTS 64 +#define MAXINTRS 16 + +/* Very pessimistic, let's hope it's enough for all cases */ +#define EV_QUEUE (((3 * 24) + 16) * MAXSLOTS) + +typedef struct XHCIState XHCIState ; +typedef struct XHCIStreamContext XHCIStreamContext ; +typedef struct XHCIEPContext XHCIEPContext ; + +enum xhci_flags { +XHCI_FLAG_SS_FIRST =1 , +XHCI_FLAG_FORCE_PCIE_ENDCAP , +XHCI_FLAG_ENABLE_STREAMS , +}; + +typedef enum TRBType { +TRB_RESERVED =0 , +TR_NORMAL , +TR_SETUP , +TR_DATA , +TR_STATUS , +TR_ISOCH , +TR_LINK , +TR_EVDATA , +TR_NOOP , +CR_ENABLE_SLOT , +CR_DISABLE_SLOT , +CR_ADDRESS_DEVICE , +CR_CONFIGURE_ENDPOINT , +CR_EVALUATE_CONTEXT , +CR_RESET_ENDPOINT , +CR_STOP_ENDPOINT , +CR_SET_TR_DEQUEUE , +CR_RESET_DEVICE , +CR_FORCE_EVENT , +CR_NEGOTIATE_BW , +CR_SET_LATENCY_TOLERANCE , +CR_GET_PORT_BANDWIDTH , +CR_FORCE_HEADER , +CR_NOOP , +ER_TRANSFER =32 , +ER_COMMAND_COMPLETE , +ER_PORT_STATUS_CHANGE , +ER_BANDWIDTH_REQUEST , +ER_DOORBELL , +ER_HOST_CONTROLLER , +ER_DEVICE_NOTIFICATION , +ER_MFINDEX_WRAP , +/* vendor specific bits */ +CR_VENDOR_NEC_FIRMWARE_REVISION =49 , +CR_VENDOR_NEC_CHALLENGE_RESPONSE =50 , +}TRBType ; + +typedef enum TRBCCode { +CC_INVALID =0 , +CC_SUCCESS , +CC_DATA_BUFFER_ERROR , +CC_BABBLE_DETECTED , +CC_USB_TRANSACTION_ERROR , +CC_TRB_ERROR , +CC_STALL_ERROR , +CC_RESOURCE_ERROR , +CC_BANDWIDTH_ERROR , +CC_NO_SLOTS_ERROR , +CC_INVALID_STREAM_TYPE_ERROR , +CC_SLOT_NOT_ENABLED_ERROR , +CC_EP_NOT_ENABLED_ERROR , +CC_SHORT_PACKET , +CC_RING_UNDERRUN , +CC_RING_OVERRUN , +CC_VF_ER_FULL , +CC_PARAMETER_ERROR , +CC_BANDWIDTH_OVERRUN , +CC_CONTEXT_STATE_ERROR , +CC_NO_PING_RESPONSE_ERROR , +CC_EVENT_RING_FULL_ERROR , +CC_INCOMPATIBLE_DEVICE_ERROR , +CC_MISSED_SERVICE_ERROR , +CC_COMMAND_RING_STOPPED , +CC_COMMAND_ABORTED , +CC_STOPPED , +CC_STOPPED_LENGTH_INVALID , +CC_MAX_EXIT_LATENCY_TOO_LARGE_ERROR =29 , +CC_ISOCH_BUFFER_OVERRUN =31 , +CC_EVENT_LOST_ERROR , +CC_UNDEFINED_ERROR , +CC_INVALID_STREAM_ID_ERROR , +CC_SECONDARY_BANDWIDTH_ERROR , +CC_SPLIT_TRANSACTION_ERROR +}TRBCCode ; + +typedef struct XHCIRing { +dma_addr_t dequeue; +bool ccs; +}XHCIRing ; + +typedef struct XHCIPort { +XHCIState *xhci; +uint32_t portsc; +uint32_t portnr; +USBPort *uport; +uint32_t speedmask; +char name[16 ]; +MemoryRegion mem; +}XHCIPort ; + +typedef struct XHCISlot { +bool enabled; +bool addressed; +dma_addr_t ctx; +USBPort *uport; +XHCIEPContext *eps[31 ]; +}XHCISlot ; + +typedef struct XHCIEvent { +TRBType type; +TRBCCode ccode; +uint64_t ptr; +uint32_t length; +uint32_t flags; +uint8_t slotid; +uint8_t epid; +}XHCIEvent ; + +typedef struct XHCIInterrupter { +uint32_t iman; +uint32_t imod; +uint32_t erstsz; +uint32_t erstba_low; +uint32_t erstba_high; +uint32_t erdp_low; +uint32_t erdp_high; + +bool msix_used, er_pcs; + +dma_addr_t er_start; +uint32_t er_size; +unsigned int er_ep_idx; + +/* kept for live migration compat only */ +bool er_full_unused; +XHCIEvent ev_buffer[EV_QUEUE ]; +unsigned int ev_buffer_put; +unsigned int ev_buffer_get; + +}XHCIInterrupter ; + +struct XHCIState { +/*< private >*/ +PCIDevice parent_obj; +/*< public >*/ + +USBBus bus; +MemoryRegion mem; +MemoryRegion mem_cap; +MemoryRegion mem_oper; +MemoryRegion mem_runtime; +MemoryRegion mem_doorbell; + +/* properties */ +uint32_t numports_2; +uint32_t numports_3; +uint32_t numintrs; +uint32_t numslots; +uint32_t flags; +uint32_t max_pstreams_mask; +OnOffAuto msi; +OnOffAuto msix; + +/* Operational Registers */ +uint32_t usbcmd; +uint32_t usbsts; +uint32_t dnctrl; +uint32_t crcr_low; +uint32_t crcr_high; +uint32_t dcbaap_low; +uint32_t dcbaap_high; +uint32_t config; + +USBPort uports[MAX (MAXPORTS_2 ,MAXPORTS_3 )]; +XHCIPort ports[MAXPORTS ]; +XHCISlot slots[MAXSLOTS ]; +uint32_t numports; + +/* Runtime Registers */ +int64_t mfindex_start; +QEMUTimer *mfwrap_timer; +XHCIInterrupter intr[MAXINTRS ]; + +XHCIRing cmd_ring; + +bool nec_quirks; +};
hw/usb/hcd-xhci-nec.c new file +63 -0
63 lines not on this page · raw message
hw/usb/hcd-xhci.c +2 -236
300 lines not on this page · raw message
hw/usb/Makefile.objs +1 -0
@@ -8,6 +8,7 @@ common-obj-$(CONFIG_USB_OHCI) += hcd-ohci.o common-obj-$(CONFIG_USB_EHCI) += hcd-ehci.o hcd-ehci-pci.o common-obj-$(CONFIG_USB_EHCI_SYSBUS) += hcd-ehci-sysbus.o common-obj-$(CONFIG_USB_XHCI) += hcd-xhci.o +common-obj-$(CONFIG_USB_XHCI) += hcd-xhci-nec.o common-obj-$(CONFIG_USB_MUSB) += hcd-musb.o obj-$(CONFIG_TUSB6010) += tusb6010.o
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 4/9] usb: Simplify the parameter parsing of the legacy usb serial device
In reply to Gerd HoffmannFrom: Thomas Huth <[email protected]>
Coverity complains about the current code, so let's get rid of the now unneeded while loop and simply always emit "unrecognized serial USB option" for all unsupported options.
Message-id: [email protected]
--- hw/usb/dev-serial.c | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-)
hw/usb/dev-serial.c +5 -16
@@ -516,27 +516,16 @@ static USBDevice *usb_serial_init(USBBus *bus, const char *filename)char label[32 ];static int index; -while (*filename && *filename !=':' ) { -const char *p; - -if (strstart (filename,"vendorid=" , &p)) { -error_report ("vendorid is not supported anymore" ); -return NULL ; - }else if (strstart (filename,"productid=" , &p)) { -error_report ("productid is not supported anymore" ); -return NULL ; - }else { -error_report ("unrecognized serial USB option %s" , filename); -return NULL ; - } -while (*filename ==',' ) - filename++; +if (*filename ==':' ) { + filename++; + }else if (*filename) { +error_report ("unrecognized serial USB option %s" , filename); +return NULL ; }if (!*filename) {error_report ("character device specification needed" );return NULL ; } - filename++;snprintf (label,sizeof (label),"usbserial%d" , index++); cdrv =qemu_chr_new (label, filename);
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 7/9] usb-hub: set PORT_STAT_C_SUSPEND on host-initiated wake-up
In reply to Gerd HoffmannFrom: Ladi Prosek <[email protected]>
PORT_STAT_C_SUSPEND should be set even on host-initiated wake-up, i.e. on ClearPortFeature(PORT_SUSPEND). Windows is known to not work properly otherwise.
Side note, since PORT_ENABLE looks similar and might appear to have the same issue: According to 11.24.2.7.2.2 C_PORT_ENABLE:
"This bit is set when the PORT_ENABLE bit changes from one to zero as a result of a Port Error condition (see Section 11.8.1). This bit is not set on any other changes to PORT_ENABLE."
Message-id: [email protected]
--- hw/usb/dev-hub.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
hw/usb/dev-hub.c +14 -1
@@ -402,7 +402,20 @@ static void usb_hub_handle_control(USBDevice *dev, USBPacket *p, port->wPortChange &= ~PORT_STAT_C_ENABLE ;break ;case PORT_SUSPEND : - port->wPortStatus &= ~PORT_STAT_SUSPEND ; +if (port->wPortStatus &PORT_STAT_SUSPEND ) { + port->wPortStatus &= ~PORT_STAT_SUSPEND ; + +/* +* USB Spec rev2.0 11.24.2.7.2.3 C_PORT_SUSPEND +* "This bit is set on the following transitions: +* - On transition from the Resuming state to the +* SendEOP [sic] state" +* +* Note that this includes both remote wake-up and +* explicit ClearPortFeature(PORT_SUSPEND). +*/ + port->wPortChange |=PORT_STAT_C_SUSPEND ; + }break ;case PORT_C_SUSPEND : port->wPortChange &= ~PORT_STAT_C_SUSPEND ;
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 6/9] xhci: add CONFIG_USB_XHCI_NEC option
In reply to Gerd HoffmannMessage-id: [email protected]
--- default-configs/pci.mak | 1 + hw/usb/Makefile.objs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
default-configs/pci.mak +1 -0
@@ -7,6 +7,7 @@ CONFIG_USB_UHCI=y CONFIG_USB_OHCI=y CONFIG_USB_EHCI=y CONFIG_USB_XHCI=y +CONFIG_USB_XHCI_NEC=y CONFIG_NE2000_PCI=y CONFIG_EEPRO100_PCI=y CONFIG_PCNET_PCI=y
hw/usb/Makefile.objs +1 -1
@@ -8,7 +8,7 @@ common-obj-$(CONFIG_USB_OHCI) += hcd-ohci.o common-obj-$(CONFIG_USB_EHCI) += hcd-ehci.o hcd-ehci-pci.o common-obj-$(CONFIG_USB_EHCI_SYSBUS) += hcd-ehci-sysbus.o common-obj-$(CONFIG_USB_XHCI) += hcd-xhci.o -common-obj-$(CONFIG_USB_XHCI) += hcd-xhci-nec.o +common-obj-$(CONFIG_USB_XHCI_NEC) += hcd-xhci-nec.o common-obj-$(CONFIG_USB_MUSB) += hcd-musb.o obj-$(CONFIG_TUSB6010) += tusb6010.o
Signature · 1 line
2.9.3
Stefan Hajnoczi
AppliedQuoted 41 lines · Gerd Hoffmann
Hi,
Here comes the usb patch queue. As usual some bugfixes, legacy options and hmp commands are deprecated, xhci is splitted so nec-xhci can have its own config option.
please pull,
GerdThe following changes since commit
9964e96dc9999cf7f7c936ee854a795415d19b60:Merge remote-tracking branch 'jasowang/tags/net-pull-request' into staging (2017-05-23 15:01:31 +0100)
are available in the git repository at:
git://git.kraxel.org/qemutags/pull-usb-20170529-1for you to fetch changes up to
3bfecee2cb71f21cd39d6183f18b446c01917573:ehci: fix frame timer invocation. (2017-05-29 14:19:16 +0200)
----------------------------------------------------------------
usb: depricate legacy options and hmp commands
usb: fixes for ehci and hub, split xhci variants----------------------------------------------------------------
Gerd Hoffmann (5):
ehci: fix overflow in frame timer code
xhci: split into multiple files
xhci: addCONFIG_USB_XHCI_NECoption
usb: don't wakeup during coldplug
ehci: fix frame timer invocation.Ladi Prosek (1):
usb-hub: setPORT_STAT_C_SUSPENDon host-initiated wake-upThomas Huth (3):
usb: Deprecate the legacy -usbdevice option
usb: Deprecate HMP commandsusb_addandusb_del
usb: Simplify the parameter parsing of the legacy usb serial device
Quoted 16 lines
hw/usb/hcd-xhci.h | 226 +++++++++++++++++++++++++++++++++++++++++++++ hw/usb/core.c | 8 ++ hw/usb/dev-hub.c | 15 ++- hw/usb/dev-serial.c | 21 +---- hw/usb/hcd-ehci.c | 15 ++- hw/usb/hcd-xhci-nec.c | 63 +++++++++++++ hw/usb/hcd-xhci.c | 238 +----------------------------------------------- vl.c | 8 ++ default-configs/pci.mak | 1 + hmp-commands.hx | 6 +- hw/usb/Makefile.objs | 1 + qemu-options.hx | 9 +- 12 files changed, 348 insertions(+), 263 deletions(-) create mode 100644 hw/usb/hcd-xhci.h create mode 100644 hw/usb/hcd-xhci-nec.c
Thanks, applied to my staging tree:
https://github.com/stefanha/qemu/commits/staging
Stefan