From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [RFC][PATCH 0/5] Memory merging driver for Linux Date: Thu, 24 Jan 2008 07:38:02 +0200 Message-ID: <4798243A.5010708@qumranet.com> References: <4794C2E1.8040607@qumranet.com> <20080123120510.4014e382@bree.surriel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: andrea-atKUWr5tajBWk0Htik3J/w@public.gmane.org, yaniv-atKUWr5tajBWk0Htik3J/w@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, kvm-devel To: Rik van Riel Return-path: In-Reply-To: <20080123120510.4014e382-Fuq27k0DHcCSkoNiqTzCLQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Rik van Riel wrote: > On Mon, 21 Jan 2008 18:05:53 +0200 > Izik Eidus wrote: > > >> i added 2 new functions to the kernel >> one: >> page_wrprotect() make the page as read only by setting the ptes point to >> it as read only. >> second: >> replace_page() - replace the pte mapping related to vm area between two >> pages >> > > How will this work on CPUs with nested paging support, where the > CPU does the guest -> physical address translation? (opposed to > having shadow page tables) > > Nested page tables are very similar to real-mode shadow paging: both translate guest physical addresses to host physical addreses. In any case, the merge driver is oblivious to the paging method used, it works at the Linux pte level and relies on mmu notifiers to keep everything in sync. -- Any sufficiently difficult bug is indistinguishable from a feature. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/