From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Deegan Subject: Re: [PATCH 7 of 7] x86/mm: When removing/adding a page from/to the physmap, keep in mind it could be shared Date: Fri, 10 Feb 2012 15:38:08 +0000 Message-ID: <20120210153808.GC32107@ocelot.phlegethon.org> References: <667191f054c34b6c1e72.1328766352@xdev.gridcentric.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <667191f054c34b6c1e72.1328766352@xdev.gridcentric.ca> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Andres Lagar-Cavilla Cc: george.dunlap@eu.citrix.com, andres@gridcentric.ca, xen-devel@lists.xensource.com, keir.xen@gmail.com, adin@gridcentric.ca List-Id: xen-devel@lists.xenproject.org At 00:45 -0500 on 09 Feb (1328748352), Andres Lagar-Cavilla wrote: > When removing the m2p mapping it is unconditionally set to invalid, which > breaks sharing. > > When adding to the physmap, if the previous holder of that entry is a shared > page, we unshare to default to normal case handling. > > And, we cannot add a shared page directly to the physmap. Proper interfaces > must be employed, otherwise book-keeping goes awry. > > Signed-off-by: Andres Lagar-Cavilla Acked-by: Tim Deegan