From: Ian Campbell Subject: Re: [PATCH 1 of 2] libxl: Remus - suspend/postflush/commit callbacks Date: Tue, 31 Jan 2012 10:53:23 +0000 Message-ID: <1328007203.26983.347.camel@zakaz.uk.xensource.com> References: <0129989da2cda789f86f.1327972925@athos.nss.cs.ubc.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <0129989da2cda789f86f.1327972925@athos.nss.cs.ubc.ca> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "rshriram@cs.ubc.ca" Cc: "brendan@cs.ubc.ca" , "xen-devel@lists.xensource.com" , Ian Jackson List-Id: xen-devel@lists.xenproject.org > @@ -669,7 +715,27 @@ int libxl__domain_suspend_common(libxl__ > } > > memset(&callbacks, 0, sizeof(callbacks)); > - callbacks.suspend = libxl__domain_suspend_common_callback; > + if (r_info != NULL) { > + /* save_callbacks: > + * suspend - called after expiration of checkpoint interval, > + * to *suspend* the domain. > + * > + * postcopy - called after the domain's dirty pages have been > + * copied into an output buffer. We *resume* the domain > + * & the device model, return to the caller. Caller then > + * flushes the output buffer, while the domain continues to run. > + * > + * checkpoint - called after the memory checkpoint has been flushed out > + * into the network. Send the saved device state, *wait* > + * for checkpoint ack and *release* the network buffer (TBD). > + * Then *sleep* for the checkpoint interval. > + */ Please can you put this next to the definition of the struct (in xenguest.h). Otherwise this patch looks ok to me. Ian.