diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-02-06 13:21:09 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-02-21 08:11:43 +0100 |
commit | f89b60f6e5fee3923bedf80e82b4e5efc1bb156b (patch) | |
tree | f4063c44c5eb455afe67d4a720e2e56567ec041b /hw/usb/trace-events | |
parent | 95ed56939eb2eaa4e2f349fe6dcd13ca4edfd8fb (diff) |
xhci: apply limits to loops
Limits should be big enough that normal guest should not hit it.
Add a tracepoint to log them, just in case. Also, while being
at it, log the existing link trb limit too.
Reported-by: 李强 <liqiang6-s@360.cn>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 1486383669-6421-1-git-send-email-kraxel@redhat.com
Diffstat (limited to 'hw/usb/trace-events')
-rw-r--r-- | hw/usb/trace-events | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb/trace-events b/hw/usb/trace-events index fdd1d29030..0c323d4cac 100644 --- a/hw/usb/trace-events +++ b/hw/usb/trace-events @@ -174,6 +174,7 @@ usb_xhci_xfer_retry(void *xfer) "%p" usb_xhci_xfer_success(void *xfer, uint32_t bytes) "%p: len %d" usb_xhci_xfer_error(void *xfer, uint32_t ret) "%p: ret %d" usb_xhci_unimplemented(const char *item, int nr) "%s (0x%x)" +usb_xhci_enforced_limit(const char *item) "%s" # hw/usb/desc.c usb_desc_device(int addr, int len, int ret) "dev %d query device, len %d, ret %d" |