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] hvm: Use main memory for video memory. [Was: xen

To: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] hvm: Use main memory for video memory. [Was: xend, 8MB video memory and ballooning]
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Thu, 31 Jul 2008 16:03:12 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 31 Jul 2008 08:03:40 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20080731145758.GP4678@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: AcjzHoz8y8Lvbl8REd2L3gAX8io7RQ==
Thread-topic: [Xen-devel] [PATCH] hvm: Use main memory for video memory. [Was: xend, 8MB video memory and ballooning]
User-agent: Microsoft-Entourage/11.4.0.080122
On 31/7/08 15:57, "Samuel Thibault" <samuel.thibault@xxxxxxxxxxxxx> wrote:

>> I'd've hoped it would just work... does the extra page of allocation
>> during restore fail?
> 
> It does work, but I guess it replaces the mapping of the "magic" page
> with the mapping of the allocated page, so that shared_info wouldn't
> work any more.

PV drivers will add_to_physmap() these pages again during resume, which will
map the correct pages (shared_info and grant_table, notably) on top of the
RAM pages that save/restore will leave behind. things should work fine then
and the displaced RAM pages *should* get freed immediately. Even if they
don't they will on domain destruction and it's only a few pages...

>> I'm thinking that the grant tables will be mapped in the I/O hole too, and
>> that is from 'Xen heap' just like shared_info is.
> 
> Urgl, hadn't thought about those, I guess the PV drivers would
> re-etablish them on resume anyway?

Yep, as above.

>> So special-casing one and not the other sure is odd.
> 
> Actually, shouldn't it be up to the hypervisor to not return all these
> from the SHADOW_OP_PEEK operation?

Well, maybe. :-) But shadow code doesn't special-case these Xen-heap pages I
think. And doing so could be a pain, and maybe cause other issues?

 -- Keir



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