From: John Levon Subject: live migration can fail due to XENMEM_maximum_gpfn Date: Mon, 6 Oct 2008 17:47:53 +0100 Message-ID: <20081006164753.GA7589@totally.trollied.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org There's a race that can cause live migration to fail. In particular, xc_save uses XENMEM_maximum_gpfn to create the shm segment. qemu then also uses that value to look up the segment. However, the value can easily change in between due to p2m_set_entry(). In particular if there's PV drivers in the HVM domU, ->max_mapped_pfn can change easily: dom 11 max gpfn 262143 dom 11 max gpfn 262143 dom 11 max gpfn 262143 .... dom 11 max gpfn 985087 (1Gb Solaris HVM domU). I'm not sure how this should be fixed? thanks john