From: Rob Hoes Subject: [PATCH RFC 0/9] libxl error reporting Date: Wed, 24 Jun 2015 14:47:27 +0100 Message-ID: <1435153656-19485-1-git-send-email-rob.hoes@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z7l1s-0005EX-7u for xen-devel@lists.xenproject.org; Wed, 24 Jun 2015 13:47:52 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: euan.harris@citrix.com, Ian.Jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org Following the proposal from Euan Harris to improve libxl's error reporting [1], I have written a first couple of patches that I would like some feedback on. The focus of these patches is on improving the errors that can be raised by the device_add functions and some related ones. Does the approach look acceptable? Do the error codes make sense? Did I miss any error conditions? One thing I wasn't sure about is what happens if libxl__wait_device_connection times out. Also, I realise that these patches essentially break backward compatibility, and I have not done the "#define LIBXL_HAVE" stuff yet. Do people consider this necessary, and if so, at what granularity (e.g. one LIBXL_HAVE for all new error codes in a release)? Thanks, Rob [1] http://lists.xen.org/archives/html/xen-devel/2015-05/msg02572.html