From: Tim Deegan Subject: Re: [RFC PATCH] PVH: cleanup of p2m upon p2m destroy Date: Fri, 20 Dec 2013 10:22:40 +0100 Message-ID: <20131220092240.GA8898@deinos.phlegethon.org> References: <20131216174728.2ba3ad9a@mantra.us.oracle.com> <52B01C88020000780010E042@nat28.tlf.novell.com> <20131217101957.GB32721@deinos.phlegethon.org> <20131217184412.2372eb45@mantra.us.oracle.com> <20131218100958.GB24792@deinos.phlegethon.org> <20131218165152.GO24792@deinos.phlegethon.org> <20131218180155.1dc09717@mantra.us.oracle.com> <20131219105058.GA20571@deinos.phlegethon.org> <20131219180009.01d61971@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VtwI8-00014n-Tx for xen-devel@lists.xenproject.org; Fri, 20 Dec 2013 09:22:45 +0000 Content-Disposition: inline In-Reply-To: <20131219180009.01d61971@mantra.us.oracle.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: Mukesh Rathor Cc: xen-devel , Jan Beulich List-Id: xen-devel@lists.xenproject.org Hi, At 18:00 -0800 on 19 Dec (1387472409), Mukesh Rathor wrote: > On Thu, 19 Dec 2013 11:50:58 +0100 Tim Deegan wrote: > > At 18:01 -0800 on 18 Dec (1387386115), Mukesh Rathor wrote: > > > No, not quite, because I need to know which mfns are foreign and > > > do put_page on them. > > > > Oh right, but you need to do that anyway -- once you've got refcounts > > held by ept entries, you need to do _all_ entry writes through the > > function that preserves the refcount invariant. So > > p2m_change_entry_type_global() has to use that function too, in case > > either of the types it's called with is p2m_foreign. And once that's > > fixed, a call to s/foreign/invalid/ DTRT. > > Right, right... i keep not realizing, it's there now and it's use > will scope beyond the current PVH usage. So rather than deferring to > when someone actually finds a use case for p2m_change_entry_type_global > using foreign, i should be handled now. > > I'll have next, un-rushed this time, patch prob first week of jan > given the upcoming holidays. Great! Looking forward to it. Happy holidays in the meantime. :) Tim.