From: "Jan Beulich" Subject: Re: Buggy interaction of live migration and p2m updates Date: Fri, 21 Nov 2014 11:43:44 +0100 Message-ID: <546F25700200007800049AB4@smtp.nue.novell.com> References: <546E32BB.8090909@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <546E32BB.8090909@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Juergen Gross , Wei Liu , Ian Campbell , Tim Deegan , Ian Jackson , Xen-devel List , David Vrabel , Shriram Rajagopalan , Hongyang Yang List-Id: xen-devel@lists.xenproject.org >>> On 20.11.14 at 19:28, wrote: > Should the guest change the p2m structure during live migration, the > toolstack ends up with a stale p2m with a non-p2m frame in the middle, > resulting in bogus cross-referencing. Should the guest change an entry > in the p2m, the p2m frame itself will be resent as it would be marked as > dirty in the logdirty bitmap, but the target pfn will remain unsent and > probably stale on the receiving side. MMU_MACHPHYS_UPDATE processing marks the page being changed as dirty. Perhaps guest_physmap_{add,remove}_page() (or certain callers thereof) should do so too? Jan