xhci: decouple EV_QUEUE from TD_QUEUE
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 27 Sep 2016 08:32:46 +0000 (10:32 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 12 Oct 2016 10:37:30 +0000 (12:37 +0200)
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

hw/usb/hcd-xhci.c

index ee4fa484d6bc55d253965ce3224d915ee93ffa9e..d9ac1b4be3cf6a09d64abdcacb9bf232f5568da3 100644 (file)
@@ -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