From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbw1v-00081B-Hh for qemu-devel@nongnu.org; Wed, 29 Jun 2011 10:46:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qbw1t-0002HC-G0 for qemu-devel@nongnu.org; Wed, 29 Jun 2011 10:46:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbw1t-0002H3-1Z for qemu-devel@nongnu.org; Wed, 29 Jun 2011 10:46:13 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p5TEkCNv017782 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 29 Jun 2011 10:46:12 -0400 Date: Wed, 29 Jun 2011 16:45:59 +0200 From: Alon Levy Message-ID: <20110629144559.GC30873@bow.redhat.com> References: <1309348641-20061-1-git-send-email-alevy@redhat.com> <1309348641-20061-13-git-send-email-alevy@redhat.com> <4E0B2359.7000702@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E0B2359.7000702@redhat.com> Subject: Re: [Qemu-devel] [PATCHv3] qxl: add QXL_IO_FLUSH_{SURFACES, RELEASE} for guest S3&S4 support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: yhalperi@redhat.com, qemu-devel@nongnu.org On Wed, Jun 29, 2011 at 03:06:33PM +0200, Gerd Hoffmann wrote: > Hi, > > >+ case QXL_IO_FLUSH_SURFACES: > >+ dprint(d, 1, "QXL_IO_FLUSH_SURFACES (%d) entry (%s, s#=%d, res#=%d)\n", > >+ val, qxl_mode_to_string(d->mode), d->guest_surfaces.count, > >+ d->num_free_res); > >+ qemu_spice_stop(&d->ssd); > >+ qemu_spice_start(&d->ssd); > >+ dprint(d, 1, "QXL_IO_FLUSH_SURFACES exit (%s, s#=%d, res#=%d,%p)\n", > >+ qxl_mode_to_string(d->mode), d->guest_surfaces.count, > >+ d->num_free_res, d->last_release); > >+ break; > > This should be async as we'll go sleep and wait for the spice server > thread finish in qemu_spice_stop(). ok, so don't cherry-pick the ioport_to_string patch yet since I'm doing s/FLUSH_SURFACES/FLUSH_SURFACES_ASYNC/ > > >+ 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. > > cheers, > Gerd >