From: Ian Jackson Subject: Re: [PATCH v4 --for 4.6 COLOPre 11/25] tools/libxc: support to resume uncooperative HVM guests Date: Mon, 4 Jan 2016 16:33:12 +0000 Message-ID: <22154.40648.433458.499357@mariner.uk.xensource.com> References: <1436946351-21118-1-git-send-email-yanghy@cn.fujitsu.com> <1436946351-21118-12-git-send-email-yanghy@cn.fujitsu.com> <1436963167.32371.30.camel@citrix.com> <55A747B1.8070705@cn.fujitsu.com> <21927.53353.666566.702017@mariner.uk.xensource.com> <55A7D88E.3040400@cn.fujitsu.com> <21927.56152.290098.175946@mariner.uk.xensource.com> <566F7580.8070200@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <566F7580.8070200@cn.fujitsu.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: Wen Congyang Cc: wei.liu2@citrix.com, Ian Campbell , andrew.cooper3@citrix.com, yunhong.jiang@intel.com, eddie.dong@intel.com, xen-devel@lists.xen.org, guijianfeng@cn.fujitsu.com, rshriram@cs.ubc.ca, Yang Hongyang List-Id: xen-devel@lists.xenproject.org Wen Congyang writes ("Re: [Xen-devel] [PATCH v4 --for 4.6 COLOPre 11/25] tools/libxc: support to resume uncooperative HVM guests"): > Sorry for the late reply. > BEFORE: HVM resume for slow path does not work. You will get the following > error message: > "Cannot resume uncooperative HVM guests" > > Fast resume: the guest status is not changed, so there is no need to disconnect and > reconnect the backend and frontend pv driver. > > Slow path resume: the guest status is changed, so we must disconnect and reconnect > the backend and frontend pv driver. When we reconnect the backend and frontend, it > will take too many time, because xenstore is very slow. That is why it is a slow path. > > In which case the slow path doesn't work? If the guest status is changed, but it is > also corrupted. I don't know what will happen in this case. I think resuming PV guest > in such state doesn't work(the behavior is undefined.) Right. Thanks, this is nice and clear. Indeed, the guest will be corrupted and if we're lucky (!) it will crash. > [discussion of AFTER] > > In my test, it works. I know I cannot say it does work in all cases. > How to know if it does work in all cases? > List all cases, and do a test for all cases. > But I think it is hard to list all cases... I certainly don't expect you to list them all and test them. I'm just trying to understand what you are saying in the commit message. So I think you could say something like: AFTER: I think it should work in XYZ cases. I have tested PQR (only), but the others are probably good because [explanation]. Or perhaps: There may still be problems with situation ABC because of problem FOO. I have not tested this. But situation ABC is already broken and this patch makes it no worse. Thanks, Ian.