From: Ian Campbell Subject: Re: [PATCH RFC 0/3] Re: [RFC Patch v4 7/9] correct xc_domain_save()'s return value Date: Mon, 22 Sep 2014 14:58:08 +0100 Message-ID: <1411394288.18331.114.camel@kazak.uk.xensource.com> References: <1411365561-29242-1-git-send-email-wency@cn.fujitsu.com> <1411365561-29242-8-git-send-email-wency@cn.fujitsu.com> <20140922073053.GA6584@aepfle.de> <541FD0F4.8080400@cn.fujitsu.com> <20140922074625.GA9788@aepfle.de> <541FD88B.5080209@cn.fujitsu.com> <1411389776.18331.73.camel@kazak.uk.xensource.com> <21536.7722.687712.755871@mariner.uk.xensource.com> <1411391615.18331.86.camel@kazak.uk.xensource.com> <21536.10963.947982.42738@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21536.10963.947982.42738@mariner.uk.xensource.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: Ian Jackson Cc: Olaf Hering , Lai Jiangshan , Wen Congyang , Jiang Yunhong , Dong Eddie , xen devel , Yang Hongyang List-Id: xen-devel@lists.xenproject.org On Mon, 2014-09-22 at 14:57 +0100, Ian Jackson wrote: > Ian Campbell writes ("Re: [Xen-devel] [RFC Patch v4 7/9] correct xc_domain_save()'s return value"): > > Hrm. libxc is already a complete mess wrt error returning/handling > > because some proportion of the code incorrectly does/assumes this sort > > of thing is happening (because people were confused about the syscall > > returns from the kernel vs. process context). Having a place in libxc > > where this is now done on purpose seems a bit like setting the rope on > > fire to me... > > Well, here is an alternative. You're probably going to hate it. > It DOES NOT COMPILE so (obviously) I have not tested it. ENOATTACHMENT... > > Ian. >