From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFOqa-00067I-JM for qemu-devel@nongnu.org; Thu, 07 Aug 2014 10:39:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XFOqS-0005wf-0v for qemu-devel@nongnu.org; Thu, 07 Aug 2014 10:39:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFOqR-0005vv-R6 for qemu-devel@nongnu.org; Thu, 07 Aug 2014 10:39:07 -0400 Date: Thu, 7 Aug 2014 16:39:01 +0200 From: Kevin Wolf Message-ID: <20140807143901.GF3374@noname.redhat.com> References: <1406290248-11545-1-git-send-email-cornelia.huck@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1406290248-11545-1-git-send-email-cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH RFC 0/3] dataplane: dataplane: more graceful error handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cornelia Huck Cc: qemu-devel@nongnu.org, Stefan Hajnoczi Am 25.07.2014 um 14:10 hat Cornelia Huck geschrieben: > Currently, qemu will take a hard exit if it fails to set up guest or > host notifiers, giving no real clue as to what went wrong (e.g., when > out of file descriptors). > > This patchset tries to make this more manageable: Both by improving the > error message and by gracefully falling back to non-dataplane in case of > errors. > > Patches are also available on > > git://github.com/cohuck/qemu dataplane-graceful-fail > > Thoughts? I think Stefan should comment on this, but I certainly welcome every patch that fixes an exit(1) call. I'm not entirely sure about the added fprintf(). It feels wrong, but of course it's a lot less wrong than exiting. Ideally already adding the device with dataplane enabled would fail so that we can return a proper QMP error message instead of just dumping something on stderr. Not sure if it's possible, though, I don't really know that code. Nothing to stop this series anyway. Kevin