|
From: | Gerd Hoffmann |
Subject: | Re: [Qemu-devel] [PATCHv3] qxl: add QXL_IO_FLUSH_{SURFACES, RELEASE} for guest S3&S4 support |
Date: | Wed, 29 Jun 2011 16:50:10 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Red Hat/3.1.11-2.el6_1 Thunderbird/3.1.11 |
+ case QXL_IO_FLUSH_RELEASE: { + QXLReleaseRing *ring =&d->ram->release_ring; + if (ring->prod - ring->cons + 1 == ring->num_items) { + // TODO - "return" a value to the guest and let it loop?^^^^ Hmm.So the story goes: I wrote this, but didn't actually see this happen in practice, particularily since the driver empties the release ring. The simplest would be to replace it with some fprintf(stderr)
How do you think this could happen? If there are no unprocessed requests in the pipeline (shouldn't be, all surfaces are flushed to device memory and destroyedv at that point) and the driver cares empty the release ring before calling this it should not happen, right?
cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |