From: Tim Deegan Subject: Re: Writable page tables questions Date: Thu, 8 Jan 2015 12:19:44 +0100 Message-ID: <20150108111944.GA5043@deinos.phlegethon.org> References: <54A975AF.6070709@gmail.com> <54AAC9A6.7000508@citrix.com> <1420538136.28863.94.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1420538136.28863.94.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Andrew Cooper , xen-devel@lists.xen.org, Junji Zhi List-Id: xen-devel@lists.xenproject.org At 09:55 +0000 on 06 Jan (1420534536), Ian Campbell wrote: > The tlb flushes involved in the above are reasonably expensive, IIRC Xen > flip flopped a bit (years ago now) on whether it is worthwhile doing > this or not, which is why I'm not sure if it still does or not. The current "writable pagetables" code for PV guests emulates the write and validates the resulting PTE. If it passes validation, it updates it, without ever making the page actually writable to the guest itself. The code is in xen/arch/x86/mm.c, as ptwr_* Cheers, Tim.