Received: from eggs.gnu.org ([2001:4830:134:3::10]:44608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHnhk-0007UE-Pq for qemu-devel@nongnu.org; Tue, 28 Jun 2016 03:45:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHnhf-00021t-Ko for qemu-devel@nongnu.org; Tue, 28 Jun 2016 03:45:07 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:65262 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHnhf-00021o-E3 for qemu-devel@nongnu.org; Tue, 28 Jun 2016 03:45:03 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u5S7iVnN005979 for ; Tue, 28 Jun 2016 03:45:03 -0400 Received: from e06smtp13.uk.ibm.com (e06smtp13.uk.ibm.com [195.75.94.109]) by mx0b-001b2d01.pphosted.com with ESMTP id 23sp50v8ct-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 28 Jun 2016 03:45:02 -0400 Received: from localhost by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 28 Jun 2016 08:45:01 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 80A96219004D for ; Tue, 28 Jun 2016 08:44:29 +0100 (BST) Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u5S7ixim65405098 for ; Tue, 28 Jun 2016 07:44:59 GMT Received: from d06av09.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u5S7ixh7009698 for ; Tue, 28 Jun 2016 01:44:59 -0600 Date: Tue, 28 Jun 2016 09:44:57 +0200 From: Cornelia Huck In-Reply-To: <1467065523-13881-1-git-send-email-thuth@redhat.com> References: <1467065523-13881-1-git-send-email-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20160628094457.263a2043.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH] virtio: Tell the user what went wrong when event_notifier_init failed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: "Michael S. Tsirkin" , qemu-devel@nongnu.org, armbru@redhat.com On Tue, 28 Jun 2016 00:12:03 +0200 Thomas Huth wrote: > event_notifier_init() can fail in real life, for example when there > are not enough open file handles available (EMFILE) when using a lot > of devices. So instead of leaving the average user with a cryptic > error number only, print out a proper error message with strerror() > instead, so that the user has a better way to figure out what is > going on and that using "ulimit -n" might help here for example. > > Signed-off-by: Thomas Huth > --- > hw/virtio/virtio-bus.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Cornelia Huck