From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPAAg-000437-Il for qemu-devel@nongnu.org; Sun, 16 Mar 2014 08:28:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPAAa-00009p-IX for qemu-devel@nongnu.org; Sun, 16 Mar 2014 08:28:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:25736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPAAa-00009i-AK for qemu-devel@nongnu.org; Sun, 16 Mar 2014 08:28:00 -0400 Date: Sun, 16 Mar 2014 14:28:00 +0200 From: "Michael S. Tsirkin" Message-ID: <20140316122800.GB17626@redhat.com> References: <1394628914-10758-1-git-send-email-kraxel@redhat.com> <1394628914-10758-4-git-send-email-kraxel@redhat.com> <20140312202611.GB3004@redhat.com> <53218B0D.8000405@redhat.com> <1394795918.5732.12.camel@nilsson.home.kraxel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1394795918.5732.12.camel@nilsson.home.kraxel.org> Subject: Re: [Qemu-devel] [PATCH 3/4] virtio-gpu: v0.3 of the virtio based GPU code. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Paolo Bonzini , qemu-devel@nongnu.org, Anthony Liguori , airlied@redhat.com On Fri, Mar 14, 2014 at 12:18:38PM +0100, Gerd Hoffmann wrote: > Hi, > > > Perhaps a configuration field is better, like this: > > > > u32 events_read; > > u32 events_clear; > > > > A new event sets a bit in events_read and generates a configuration > > change interrupt. The guest should never write to events_read. > > Makes sense to me. I think I'll go write up things as diff against > virtio-wip, then post it for review. > > cheers, > Gerd > Net device has a similar problem with gratitious packet sending. What we are doing there is VIRTIO_NET_S_ANNOUNCE bit in the status field in the configuration, coupled with VIRTIO_NET_CTRL_ANNOUNCE_ACK command to clear it. -- MST