From: Ian Campbell Subject: Re: xl save but leave domain paused Date: Tue, 4 Jun 2013 15:28:25 +0100 Message-ID: <1370356105.24512.110.camel@zakaz.uk.xensource.com> References: <51A7C8BE.4050306@yahoo.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51A7C8BE.4050306@yahoo.co.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Murray Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Thu, 2013-05-30 at 22:46 +0100, Ian Murray wrote: > To this end and as more of a starting point, I have written my own basic > patch. While this appears to work, I see a (very small) opportunity for > the domU to run for a short time between the libxl_domain_resume and > libxl_domain_pause calls. This defeats the object as I am trying to > maintain a disk snapshot that is exactly in synch with the save state. > > Can anyone please offer some thoughts on how I can implement this > properly. Does it work if you simply do the pause before the resume? Looking at the hypervisor side it appears that pauses are referenced counted and it looks (based on a cursory glance) that it will do the right thing. > I have looked at the corresponding xc calls but meddling with > those is way beyond my knowledge. Another way of looking at the problem > would be able to perform an xl save on a paused domain, as this would > achieve the same result. OOI what happens if you try that? > (Against RELEASE-4.2.2) FYI any eventual patch will need to be against unstable and then considered separately for backporting. Ian.