qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PATCH 2/8] xhci: decouple EV_QUEUE from TD_QUEUE
Date: Tue, 27 Sep 2016 10:32:46 +0200	[thread overview]
Message-ID: <1474965172-30321-3-git-send-email-kraxel@redhat.com> (raw)
In-Reply-To: <1474965172-30321-1-git-send-email-kraxel@redhat.com>

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>
---
 hw/usb/hcd-xhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index 726435c..15cac56 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -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
-- 
1.8.3.1

  parent reply	other threads:[~2016-09-27  8:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-27  8:32 [Qemu-devel] [PATCH 0/8] xhci: stream transfer fixes, cleanups Gerd Hoffmann
2016-09-27  8:32 ` [Qemu-devel] [PATCH 1/8] [debug] uas: use 32 streams Gerd Hoffmann
2016-09-27  8:32 ` Gerd Hoffmann [this message]
2016-09-27  8:32 ` [Qemu-devel] [PATCH 3/8] xhci: drop unused comp_xfer field Gerd Hoffmann
2016-09-27  8:32 ` [Qemu-devel] [PATCH 4/8] xhci: use linked list for transfers Gerd Hoffmann
2016-09-27  8:32 ` [Qemu-devel] [PATCH 5/8] xhci: drop XHCITransfer->xhci Gerd Hoffmann
2016-09-27  8:32 ` [Qemu-devel] [PATCH 6/8] xhci: add & use xhci_kick_epctx() Gerd Hoffmann
2016-09-27  8:32 ` [Qemu-devel] [PATCH 7/8] xhci: drop XHCITransfer->{slotid,epid} Gerd Hoffmann
2016-09-27  8:32 ` [Qemu-devel] [PATCH 8/8] xhci: make xhci_epid_to_usbep accept XHCIEPContext Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1474965172-30321-3-git-send-email-kraxel@redhat.com \
    --to=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).