From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=39439 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5MwW-0000pP-BG for qemu-devel@nongnu.org; Thu, 31 Mar 2011 14:50:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5MwU-00080L-P0 for qemu-devel@nongnu.org; Thu, 31 Mar 2011 14:50:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5MwU-0007zr-ES for qemu-devel@nongnu.org; Thu, 31 Mar 2011 14:50:02 -0400 Date: Thu, 31 Mar 2011 20:49:41 +0200 From: "Michael S. Tsirkin" Subject: Re: [Qemu-devel] [PATCH RFC] vga: flag vga ram for notifiers Message-ID: <20110331184940.GA25688@redhat.com> References: <20110331174328.GA25133@redhat.com> <4D94C916.6080709@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D94C916.6080709@codemonkey.ws> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org On Thu, Mar 31, 2011 at 01:33:58PM -0500, Anthony Liguori wrote: > On 03/31/2011 12:43 PM, Michael S. Tsirkin wrote: > >Currently, vga cards that allocate vga ram, > >register it as regular ram. When this happens > >a lot, vhost need to get notified and flush > >its memory tables, which is slow. > > > >This was observed with cirrus vga. > > > >As a solution, add an explicit flag when > >registering vga ram, vhost-net can simply ignore it. > > > >Long term, we might be able to use this API > >to avoid the need to request > >dirty loggin from devices explicitly. > > > >Tested: with cirrus vga only. > > > >Signed-off-by: Michael S. Tsirkin > > Treating vga specially is not the right approach. > > You want to treat real RAM specially and only make that visible to > vhost. See http://wiki.qemu.org/Features/RamAPI That seems like a dead project? And VGa is unhandled there. > There is nothing special about VGA. It is special in that guest can control host virtual to guest physical mappings. In this VGA is similar to IO rather than RAM. -- MST