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] create shadow pages

To: ding baozeng <baozengding@xxxxxxxxx>
Subject: Re: [Xen-devel] create shadow pages
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Thu, 4 Nov 2010 12:44:01 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 04 Nov 2010 05:44:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTim3OqBOcw2KtpT9rfNj5ZKuqcBup3tJktCmddJc@xxxxxxxxxxxxxx>
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>
References: <AANLkTim3OqBOcw2KtpT9rfNj5ZKuqcBup3tJktCmddJc@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
Hi,

At 12:30 +0000 on 04 Nov (1288873804), ding baozeng wrote:
> I alloc some memory (some pages)in the hvm domU kernel space, but not
> map it. So the kernel space could not access the memory by its guest
> tables. But I would access it by shadow pages for some use.

Why can't you just map it with the guest pagetables?  Having it only in
the shadow pagetables would be confusing.  What if the guest kernel
wants to map something else at that virtual address?

> When the
> shadow pages are built, they should be in memory always and should not
> be paged out.  Then how to create the shadow pages for the memory?

The easiest thing would be to change guest_walk_tables to insert your
mappings as if they were in the guest pagetables.  That way all the
users in Xen will be consisitent.  

Cheers,

Tim.

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

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