qemu-irix/hw/usb
Dr. David Alan Gilbert 3807aeb1d4 xhci PCIe endpoint migration compatibility fix
Add back the PCIe config capabilities on XHCI cards in non-PCIe slots,
but only for machine types before 2.1.

This fixes a migration incompatibility in the XHCI PCI devices
caused by:
   058fdcf52c - xhci: add endpoint cap on express bus only

Note that in fixing it for compatibility with older QEMUs, it breaks
compatibility with existing QEMU 2.1's on older machine types.

The status before this patch was (if it used an XHCI adapter):
   machine type | source qemu
     any           pre-2.1     - FAIL
     any           2.1...      - PASS

With this patch:
   machine type | source qemu
     any           pre-2.1    - PASS
     pre-2.1       2.1...     - FAIL
     2.1           2.1...     - PASS

A test to trigger it is to add '-device nec-usb-xhci,id=xhci,addr=0x12'
to the command line.

Cc: qemu-stable@nongnu.org
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit e6043e92c2)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2014-12-24 15:45:02 -06:00
..
Makefile.objs
bus.c
ccid-card-emulated.c ccid-card-emulated: use EventNotifier 2014-07-01 15:49:51 +02:00
ccid-card-passthru.c
ccid.h
combined-packet.c
core.c usb: add usb_pick_speed 2014-06-02 16:29:00 +02:00
desc-msos.c
desc.c usb: add usb_pick_speed 2014-06-02 16:29:00 +02:00
desc.h
dev-audio.c
dev-bluetooth.c usb: Fix usb-bt-dongle initialization. 2014-07-01 13:26:37 +02:00
dev-hid.c
dev-hub.c
dev-mtp.c usb: mtp: tag root property as experimental 2014-07-23 08:55:40 +02:00
dev-network.c
dev-serial.c
dev-smartcard-reader.c
dev-storage.c blockdev: Rename drive_init(), drive_uninit() to drive_new(), drive_del() 2014-06-16 17:23:19 +08:00
dev-uas.c
dev-wacom.c
hcd-ehci-pci.c
hcd-ehci-sysbus.c
hcd-ehci.c usb: move ehci register defines to header file 2014-06-02 16:28:59 +02:00
hcd-ehci.h
hcd-musb.c
hcd-ohci.c hw/usb: Add missing 'static' attribute 2014-07-18 17:45:37 +04:00
hcd-uhci.c usb: move uhci register defines to header file 2014-06-02 16:28:59 +02:00
hcd-xhci.c xhci PCIe endpoint migration compatibility fix 2014-12-24 15:45:02 -06:00
host-legacy.c
host-libusb.c usb: initialize libusb_device to avoid crash 2014-07-01 13:26:37 +02:00
host-stub.c
host.h
libhw.c
quirks-ftdi-ids.h
quirks-pl2303-ids.h
quirks.c
quirks.h
redirect.c serial: poll the serial console with G_IO_HUP 2014-06-30 15:04:34 +02:00