From: Janne Huttunen <jahuttun@gmail.com>
To: andrzej zaborowski <balrogg@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Unknown command 0xffffff in SVGA command FIFO
Date: Wed, 21 Jul 2010 15:14:05 +0300 [thread overview]
Message-ID: <4C46E48D.9080303@gmail.com> (raw)
In-Reply-To: <AANLkTinhyldh6P-6wPP2Ix-1rGofGopmzjFBPdU41VZd@mail.gmail.com>
> No, I think that can't happen, but it would be interesting to bisect
> what the guest is doing exactly when this happens. The guest should
> not move the "next command" pointer before if has written the command
> entirely, this should be enough to guard against executing a partial
> command. Unless there's another timing issue somewhere obviously.
Well, the guest driver is essentially the one in X.Org git tree here:
http://cgit.freedesktop.org/xorg/driver/xf86-video-vmware/tree/src
Looking at e.g. vmwareSendSVGACmdUpdate and vmwareWriteWordToFIFO
in vmware.c, the command seems to be inserted into the FIFO one
value at a time. Now, is the whole sequence somehow atomic wrt the
host FIFO access or not?
> Hmm, I don't know about the guest.. would be good to check too, but it
> should be only fixable in the guest if it is so.
Is the FIFO protocol documented somewhere? Like what kind of
atomicity is expected?
> I'm not sure if it's likely that the FIFO is really getting full?
> Most guest software will not write too many commands without knowing
> that the previous content has appeared on the screen, right?
Yes, I agree. That's more of a theoretical issue.
> The FIFO can run at any moment but everything else stops until all the
> commands currently in the FIFO have been executed. vmware_fifo_run is
> called by the UI update which in turn is called from the main select()
> loop. Guest code is also executed in that loop.
"At any time" as in between guest calls to vmwareWriteWordToFIFO?
Or not? It seems to me that the GUI is updated from a timer, but
can it go off at any time?
next prev parent reply other threads:[~2010-07-21 12:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-21 11:17 [Qemu-devel] Unknown command 0xffffff in SVGA command FIFO Janne Huttunen
2010-07-21 11:45 ` andrzej zaborowski
2010-07-21 12:14 ` Janne Huttunen [this message]
2010-07-21 12:33 ` andrzej zaborowski
2010-07-21 15:02 ` Janne Huttunen
2010-07-21 16:00 ` Janne Huttunen
2010-07-23 1:35 ` balrog
2010-08-16 20:26 ` Janne Huttunen
2010-09-10 1:34 ` andrzej zaborowski
[not found] ` <4080236889252115527@unknownmsgid>
2010-07-23 1:41 ` andrzej zaborowski
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=4C46E48D.9080303@gmail.com \
--to=jahuttun@gmail.com \
--cc=balrogg@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.