From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v2 4/6] libxc/save: Adjust stream-position callbacks for checkpointed streams Date: Mon, 11 May 2015 12:36:24 +0100 Message-ID: <1431344184.8263.33.camel@citrix.com> References: <1431119675-23847-1-git-send-email-andrew.cooper3@citrix.com> <1431119675-23847-5-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1431119675-23847-5-git-send-email-andrew.cooper3@citrix.com> 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: Wei Liu , Yang Hongyang , Ian Jackson , Xen-devel List-Id: xen-devel@lists.xenproject.org On Fri, 2015-05-08 at 22:14 +0100, Andrew Cooper wrote: > There are some records which should only be sent once in the stream, and not > repeated for each checkpoint. {start,end}_of_stream() become per-checkpoint, > and a new start_of_stream() is introduced. > > There is no resulting change record order, but the X86_PV_INFO and > X86_PV_P2M_FRAMES records are positively identified as once per stream, rather > than once per checkpoint. In the case of the latter judging from the comments this is currently an implementation detail and in principal we want to be able to resend the p2m frames as well? [...] > diff --git a/tools/libxc/xc_sr_save_x86_pv.c b/tools/libxc/xc_sr_save_x86_pv.c > index a668221..f63f40b 100644 > --- a/tools/libxc/xc_sr_save_x86_pv.c > +++ b/tools/libxc/xc_sr_save_x86_pv.c > @@ -816,6 +816,12 @@ static int x86_pv_start_of_stream(struct xc_sr_context *ctx) > if ( rc ) > return rc; > > + /* > + * Ideally should be able to change during migration. Currently > + * corruption will occur if the contents or location of the P2M changes > + * during the live migration loop. If one is very lucky, the breakage > + * will not be subtle. > + */ > rc = write_x86_pv_p2m_frames(ctx); > if ( rc ) > return rc; This is the comment I'm basing the above on. Ian.