summaryrefslogtreecommitdiffstats
path: root/hw/usb/core.c
diff options
context:
space:
mode:
authorAnthony Liguori2013-06-03 15:37:54 +0200
committerAnthony Liguori2013-06-03 15:37:54 +0200
commit40459a0312569817f622926efd0780ef2299aaa1 (patch)
tree35fb6c0fc95022191c94a1f5774dda84cce96cda /hw/usb/core.c
parentMerge remote-tracking branch 'mjt/trivial-patches' into staging (diff)
parentxhci: add live migration support (diff)
downloadqemu-40459a0312569817f622926efd0780ef2299aaa1.tar.gz
qemu-40459a0312569817f622926efd0780ef2299aaa1.tar.xz
qemu-40459a0312569817f622926efd0780ef2299aaa1.zip
Merge remote-tracking branch 'kraxel/usb.83' into staging
# By Gerd Hoffmann (5) and others # Via Gerd Hoffmann * kraxel/usb.83: xhci: add live migration support xhci: add xhci_init_epctx xhci: add xhci_alloc_epctx xhci: add XHCISlot->addressed pci: add VMSTATE_MSIX host-libusb: Correct test for USB packet state Fix usage of USB_DEV_FLAG_IS_HOST flag. Message-id: 1370253951-12323-1-git-send-email-kraxel@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/usb/core.c')
-rw-r--r--hw/usb/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/core.c b/hw/usb/core.c
index 15a150aea0..05948ca9a4 100644
--- a/hw/usb/core.c
+++ b/hw/usb/core.c
@@ -410,7 +410,7 @@ void usb_handle_packet(USBDevice *dev, USBPacket *p)
assert(p->ep->type != USB_ENDPOINT_XFER_ISOC);
/* using async for interrupt packets breaks migration */
assert(p->ep->type != USB_ENDPOINT_XFER_INT ||
- (dev->flags & USB_DEV_FLAG_IS_HOST));
+ (dev->flags & (1 << USB_DEV_FLAG_IS_HOST)));
usb_packet_set_state(p, USB_PACKET_ASYNC);
QTAILQ_INSERT_TAIL(&p->ep->queue, p, queue);
} else if (p->status == USB_RET_ADD_TO_QUEUE) {