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] 2MB page PV guest support clarification

To: "Mick.Jordan@xxxxxxx" <Mick.Jordan@xxxxxxx>
Subject: RE: [Xen-devel] 2MB page PV guest support clarification
From: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>
Date: Sat, 28 Feb 2009 01:28:44 +0000
Accept-language: en-US
Acceptlanguage: en-US
Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>
Delivery-date: Fri, 27 Feb 2009 17:29:15 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49A88883.8090106@xxxxxxx>
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: <49A870E6.8050300@xxxxxxx> <49A8770F.6070806@xxxxxxxx> <4FA716B1526C7C4DB0375C6DADBC4EA34172695B6F@xxxxxxxxxxxxxxxxxxxxxxxxx> <49A88883.8090106@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcmZPXo7NV0hAhI/S4K570Q7J5rqtAABbwzA
Thread-topic: [Xen-devel] 2MB page PV guest support clarification
> You remark about aliasing prompts me to ask a general question about
> that. I am currently mapping physical to virtual 1-1 (because that is
> what minis-os has always done) as well as mapping parts of that to
> other areas in virtual memory. Both of these are RW mappings. Is that
> ok? It perfectly possible for me to unmap the 1-1 mappings or make them
> RO if I have to.

Any page that is part of a pagetable must be mapped RO in every mapping to it. 
Attempting to add a page that has RW mappings to a pagetable will fail (either 
when you make the hypercall to add the PTE, or when you pin a constructed 
pagetable or try switching to it).

Thus, you need to be careful with 1:1 maps to remove pages that may become PT 
pages. It's best to have a PT page allocator that tries to allocate PT's from 
contiguous regions and then recycles them.

Ian

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