From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnVYk-0004MO-4r for qemu-devel@nongnu.org; Thu, 22 May 2014 12:09:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnVYc-0005n1-LF for qemu-devel@nongnu.org; Thu, 22 May 2014 12:09:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnVYc-0005mw-Du for qemu-devel@nongnu.org; Thu, 22 May 2014 12:09:26 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4MG9PDb004548 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 22 May 2014 12:09:26 -0400 Date: Thu, 22 May 2014 18:09:23 +0200 From: Stefan Hajnoczi Message-ID: <20140522160923.GP21238@stefanha-thinkpad.redhat.com> References: <1400689698-3096-1-git-send-email-kwolf@redhat.com> <1400689698-3096-15-git-send-email-kwolf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1400689698-3096-15-git-send-email-kwolf@redhat.com> Subject: Re: [Qemu-devel] [PATCH 14/20] raw-win32: Handle failure for potentially large allocations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel@nongnu.org On Wed, May 21, 2014 at 06:28:12PM +0200, Kevin Wolf wrote: > Some code in the block layer makes potentially huge allocations. Failure > is not completely unexpected there, so avoid aborting qemu and handle > out-of-memory situations gracefully. > > This patch addresses the allocations in the raw-win32 block driver. > > Signed-off-by: Kevin Wolf > --- > block/win32-aio.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) Reviewed-by: Stefan Hajnoczi