WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH 0 of 4] videoram allocation and stdvga improvemen

To: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 0 of 4] videoram allocation and stdvga improvements
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 13 Jan 2009 14:45:42 +0000
Cc:
Delivery-date: Tue, 13 Jan 2009 06:45:55 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090113143136.GI5033@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acl1jZu1UlBlFwJN5UCweVu1u/XAFA==
Thread-topic: [Xen-devel] [PATCH 0 of 4] videoram allocation and stdvga improvements
User-agent: Microsoft-Entourage/12.14.0.081024
On 13/01/2009 14:31, "Samuel Thibault" <samuel.thibault@xxxxxxxxxxxx> wrote:

>> That's what it was doing before I made hvmloader do it.  The reason was
>> to make save/restore work fine with stubdomains dirty log, etc.
> 
> Ah, now I remember the precise reason, written in the 18383 changelog:
> 
> When creating an HVM domain, if e.g. another domain is created before
> qemu allocates video memory, the extra 8MB memory ballooning is not
> available any more, because it got consumed by the other domain.

That explains why HVM guests were starting up with an 8MB memory overhead
and yet were allocating video memory out of their ordinary RAM allocation.
:-)

Hmmm then perhaps it makes sense to have hvmloader continue to allocate the
framebuffer. It can attempt to allocate fresh memory, and it can fall back
to relocating ordinary RAM pages if allocations fail (hvmloader has the
capability to relocate pseudophys pages now!).

I'll talk to Stefano some more about it....

 Thanks,
 Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel