qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Avi Kivity <avi@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] RTL8139: Latch C+ mode state instead of inferring it from C+ Command register
Date: Tue, 13 Jan 2009 09:20:17 -0600	[thread overview]
Message-ID: <496CB131.5070400@codemonkey.ws> (raw)
In-Reply-To: <1231763354-1591-1-git-send-email-avi@redhat.com>

Avi Kivity wrote:
> It was observed that Windows 2003 x64 hangs when shutting down if an
> RTL8139 NIC and a USB device tablet are both present.  What seems to be
> happening is:
>
> - the guest shuts down the transmitter and receiver
> - time passes
> - the guest requests a tally counter dump
>
> As it happens, the tally counter command register overlaps the transmit
> status register in C mode.  Qemu determines whether the chip is in C or C+
> mode by looking at the C+ transmit enable bit; as this is now unset, the
> dump tally counter command is interpreted as a C mode transmit command.  The
> guest doesn't think so, however, and continues to poll for completion of the
> tally counter dump command.  This never occurs, so the guest hangs.
>
> Fix by redefining C+ mode as "a write to the C+ command register has occurred
> since the last reset".  The data sheet is silent on the matter.
>
> Signed-off-by: Avi Kivity <avi@redhat.com>
>
>   
Applied.  Thanks.

Regards,

Anthony Liguori

      reply	other threads:[~2009-01-13 15:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-12 12:29 [Qemu-devel] [PATCH] RTL8139: Latch C+ mode state instead of inferring it from C+ Command register Avi Kivity
2009-01-13 15:20 ` Anthony Liguori [this message]

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=496CB131.5070400@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=avi@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).