From: Tim Deegan Subject: Re: how does variable num define for errno in libxc Date: Wed, 19 Mar 2008 11:57:16 +0000 Message-ID: <20080319115716.GA24038@york.uk.xensource.com> References: <47E08D22.10803@ncic.ac.cn> <1205899750.12674.4.camel@thinkpad.localdomain> <47E0C991.5070704@sina.com.cn> <1205925115.12674.10.camel@thinkpad.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Return-path: Content-Disposition: inline In-Reply-To: <1205925115.12674.10.camel@thinkpad.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: tgh , xen-devel List-Id: xen-devel@lists.xenproject.org At 12:11 +0100 on 19 Mar (1205928715), Daniel Stodden wrote: > > another question > > i am confused about how to use shadow mechanism ,that is, when live > > migration, after shutdown VM,and XEN_DOMCTL_SHADOW_OP_CLEAN, how to make VM > > remain in shadow mode XEN_DOMCTL_SHADOW_OP_ENABLE_LOGDIRTY? i have > > modified the code to try to make it as follows > > if ( !(xc_shadow_control(xc_handle, dom, > > XEN_DOMCTL_SHADOW_OP_OFF, > > NULL, 0, NULL, 0, NULL) >= 0 && > > xc_shadow_control(xc_handle, dom, > > XEN_DOMCTL_SHADOW_OP_ENABLE_LOGDIRTY, > > NULL, 0, NULL, 0, NULL) >= 0) ) If the domain is already in shadow log-dirty mode, and you want it to remain in shadow log-dirty mode, surely you don't need to do anything at all? Cheers, Tim. -- Tim Deegan Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.]