|
|
9ae3a8 |
From c5deaa70b6b347189a53bd2b058164dffc439a59 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
Date: Fri, 11 Jul 2014 14:20:56 +0200
|
|
|
9ae3a8 |
Subject: [PATCH 22/43] uhci: invalidate queue on device address changes
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Message-id: <1405088470-24115-24-git-send-email-kraxel@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 59851
|
|
|
9ae3a8 |
O-Subject: [RHEL-7.1 qemu-kvm PATCH 23/37] uhci: invalidate queue on device address changes
|
|
|
9ae3a8 |
Bugzilla: 1111450
|
|
|
9ae3a8 |
RH-Acked-by: Dr. David Alan Gilbert (git) <dgilbert@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
(cherry picked from commit c348e481759057c925cce4bf54336f1518b8c702)
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/usb/hcd-uhci.c | 2 ++
|
|
|
9ae3a8 |
1 file changed, 2 insertions(+)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/usb/hcd-uhci.c | 2 ++
|
|
|
9ae3a8 |
1 file changed, 2 insertions(+)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c
|
|
|
9ae3a8 |
index 989c37a..f38f737 100644
|
|
|
9ae3a8 |
--- a/hw/usb/hcd-uhci.c
|
|
|
9ae3a8 |
+++ b/hw/usb/hcd-uhci.c
|
|
|
9ae3a8 |
@@ -254,9 +254,11 @@ static bool uhci_queue_verify(UHCIQueue *queue, uint32_t qh_addr, UHCI_TD *td,
|
|
|
9ae3a8 |
uint32_t td_addr, bool queuing)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
UHCIAsync *first = QTAILQ_FIRST(&queue->asyncs);
|
|
|
9ae3a8 |
+ uint32_t queue_token_addr = (queue->token >> 8) & 0x7f;
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
return queue->qh_addr == qh_addr &&
|
|
|
9ae3a8 |
queue->token == uhci_queue_token(td) &&
|
|
|
9ae3a8 |
+ queue_token_addr == queue->ep->dev->addr &&
|
|
|
9ae3a8 |
(queuing || !(td->ctrl & TD_CTRL_ACTIVE) || first == NULL ||
|
|
|
9ae3a8 |
first->td_addr == td_addr);
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.8.3.1
|
|
|
9ae3a8 |
|