From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Deegan Subject: Re: [v4][PATCH 02/19] xen/x86/p2m: introduce set_identity_p2m_entry Date: Thu, 25 Jun 2015 10:59:45 +0100 Message-ID: <20150625095945.GC47924@deinos.phlegethon.org> References: <1435053450-25131-1-git-send-email-tiejun.chen@intel.com> <1435053450-25131-3-git-send-email-tiejun.chen@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1435053450-25131-3-git-send-email-tiejun.chen@intel.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: Tiejun Chen Cc: Andrew Cooper , Keir Fraser , Jan Beulich , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 17:57 +0800 on 23 Jun (1435082233), Tiejun Chen wrote: > We will create this sort of identity mapping as follows: > > If the gfn space is unoccupied, we just set the mapping. If space > is already occupied by desired identity mapping, do nothing. > Otherwise, failure is returned. > > And we also add a returning value to guest_physmap_remove_page() > then make that as a better helper to clear such a p2m entry. > > CC: Tim Deegan > CC: Keir Fraser > CC: Jan Beulich > CC: Andrew Cooper > Signed-off-by: Tiejun Chen > Reviewed-by: Kevin Tian Reviewed-by: Tim Deegan