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] HYBRID: set_page_prot() (make pte readonly)

To: Mukesh Rathor <mukesh.rathor@xxxxxxxxxx>
Subject: Re: [Xen-devel] HYBRID: set_page_prot() (make pte readonly)
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Fri, 7 Oct 2011 08:58:09 +0100
Cc: Fitzhardinge <jeremy@xxxxxxxx>, "Xen-devel@xxxxxxxxxxxxxxxxxxx" <Xen-devel@xxxxxxxxxxxxxxxxxxx>, Jeremy, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Fri, 07 Oct 2011 01:02:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20111006191241.0866625f@xxxxxxxxxxxxxxxxxxxx>
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>
Organization: Citrix Systems, Inc.
References: <20111006191241.0866625f@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, 2011-10-07 at 03:12 +0100, Mukesh Rathor wrote:
> Hi Jeremy,
> 
> This for my hybrid, PV in HVM container with EPT.

Do you have something functional without EPT? I appreciate that this is
just a stepping stone to the final functionality but it might be worth
starting to post those patches? It would be a useful baseline for others
to start looking at additional features/optimisations on top of etc.

>  With EPT, I don't
> have the guest going to xen for any va_mapping, and only dealing with
> pfn's.

Do you do this by stubbing out the hypercalls (e.g. via a VDSO type
thing in guest address space) or are you cutting off the PV MMU stuff at
start of day using XENFEAT_autotranslated_physmap and/or
XENFEAT_writeable_*? Or some other option?

> So, I'm at a loss on how to make set_page_prot() work during 
> xen_map_identity_early(). I tried few things, but no luck. The fixmap
> is not setup during this time, so can't use that. 

You can just omit it altogether if XENFEAT_writeable_pagetables is set?

Ian.

> 
> Have any ideas?
> 
> thanks,
> Mukesh
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



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