Skip to content

Commit

Permalink
xhci: decouple EV_QUEUE from TD_QUEUE
Browse files Browse the repository at this point in the history
EV_QUEUE must not change because an array of that size is part of live
migration data.  Hard-code current value there, so we can touch TD_QUEUE
without breaking live migration.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 1474965172-30321-3-git-send-email-kraxel@redhat.com
  • Loading branch information
kraxel committed Oct 12, 2016
1 parent 05f43d4 commit 1fe163f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/usb/hcd-xhci.c
Expand Up @@ -49,7 +49,7 @@
#define TD_QUEUE 24

/* Very pessimistic, let's hope it's enough for all cases */
#define EV_QUEUE (((3*TD_QUEUE)+16)*MAXSLOTS)
#define EV_QUEUE (((3 * 24) + 16) * MAXSLOTS)
/* Do not deliver ER Full events. NEC's driver does some things not bound
* to the specs when it gets them */
#define ER_FULL_HACK
Expand Down

0 comments on commit 1fe163f

Please sign in to comment.