From: Vincent Palatin <vincent.palatin_qemu@m4x.org>
To: qemu-devel@nongnu.org
Cc: Vincent Palatin <vincent.palatin_qemu@m4x.org>,
Jan Kiszka <jan.kiszka@web.de>, David Ahern <daahern@cisco.com>
Subject: [Qemu-devel] [PATCH 1/2] ehci: Fix error detection when registering a new list base address
Date: Mon, 10 May 2010 04:32:07 +0200 [thread overview]
Message-ID: <1273458728-24918-2-git-send-email-vincent.palatin_qemu@m4x.org> (raw)
In-Reply-To: <1273458728-24918-1-git-send-email-vincent.palatin_qemu@m4x.org>
We must check against the current running command not the list address.
Signed-off-by: Vincent Palatin <vincent.palatin_qemu@m4x.org>
---
hw/usb-ehci.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c
index 8be0780..e724653 100644
--- a/hw/usb-ehci.c
+++ b/hw/usb-ehci.c
@@ -774,7 +774,7 @@ static void ehci_mem_writel(void *ptr, target_phys_addr_t addr, uint32_t val)
break;
case PERIODICLISTBASE:
- if (val & USBCMD_PSE) {
+ if (s->usbcmd & USBCMD_PSE) {
fprintf(stderr, "Guest OS should not be setting the periodic"
" list base register while periodic schedule is enabled\n");
return;
@@ -783,7 +783,7 @@ static void ehci_mem_writel(void *ptr, target_phys_addr_t addr, uint32_t val)
break;
case ASYNCLISTADDR:
- if (val & USBCMD_ASE) {
+ if (s->usbcmd & USBCMD_ASE) {
fprintf(stderr, "Guest OS should not be setting the async list"
" address register while async schedule is enabled\n");
return;
--
1.5.6.5
next prev parent reply other threads:[~2010-05-10 2:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-10 2:32 [Qemu-devel] ehci fixes Vincent Palatin
2010-05-10 2:32 ` Vincent Palatin [this message]
2010-05-10 2:32 ` [Qemu-devel] [PATCH 2/2] ehci: Fix debug traces Vincent Palatin
2010-05-10 2:36 ` [Qemu-devel] Re: ehci fixes David S. Ahern
2010-05-10 13:43 ` Vincent Palatin
2010-05-12 19:29 ` Jan Kiszka
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=1273458728-24918-2-git-send-email-vincent.palatin_qemu@m4x.org \
--to=vincent.palatin_qemu@m4x.org \
--cc=daahern@cisco.com \
--cc=jan.kiszka@web.de \
--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).