From: Mukesh Rathor Subject: Re: HYBRID: set_page_prot() (make pte readonly) Date: Fri, 7 Oct 2011 10:55:55 -0700 Message-ID: <20111007105555.0afb42b3@mantra.us.oracle.com> References: <20111006191241.0866625f@mantra.us.oracle.com> <1317974289.21903.287.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1317974289.21903.287.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: Fitzhardinge , "Xen-devel@lists.xensource.com" , Jeremy, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, 7 Oct 2011 08:58:09 +0100 Ian Campbell wrote: > 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. Hi Ian, Please see my previous posts with patches attached for hybrid without EPT. Search for HYBRID in subject. > 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? I'm cutting off PV MMU stuff with XENFEAT_auto_translated_physmap. > > 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? Right. thanks, Mukesh