From: "andrzej zaborowski" Subject: Re: [Qemu-devel] Re: [PATCH 1/5] re-register whole area upon lfb unmap. Date: Thu, 25 Dec 2008 21:08:07 +0100 Message-ID: References: <1229546822-11972-1-git-send-email-glommer@redhat.com> <1229546822-11972-2-git-send-email-glommer@redhat.com> <494966BA.7000100@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: "Glauber Costa" , stefano.stabellini@eu.citrix.com, Ian.Jackson@eu.citrix.com, kvm@vger.kernel.org, avi@redhat.com To: qemu-devel@nongnu.org Return-path: Received: from rv-out-0506.google.com ([209.85.198.225]:12328 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751918AbYLYUII (ORCPT ); Thu, 25 Dec 2008 15:08:08 -0500 Received: by rv-out-0506.google.com with SMTP id k40so3292448rvb.1 for ; Thu, 25 Dec 2008 12:08:07 -0800 (PST) In-Reply-To: <494966BA.7000100@codemonkey.ws> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: 2008/12/17 Anthony Liguori : > Glauber Costa wrote: >> >> set phys_offset correctly for the whole vga area when unmapping linear >> vram >> (for vga optimization). We first register the old pieces as unassigned >> memory, to make things easier for kvm (and possibly other slot based >> implementations in the future). Replacing the region directly would >> make the slot management significantly more complex. >> > > This change worries me because it involves explicitly unassigning slots and > then assigning a new, bigger slot. This is not necessary for TCG. It > suggests to me that there's a bug in the kvm slot code and that we're > changing QEMU to work around it. > > That will means there may be other places in the code that are completely > valid, but exercise this bug. > > Or is this purely an optimization? It also changes the semantics because IO callbacks are now passed offsets from regions starts instead of absolute addresses. I'm not able to tell if the change is for good or for bad though. Cheers