Re: [Qemu-devel] [PATCH v2 02/20] block: Handle failure for potentially large allocations

2014-05-30 Thread Stefan Hajnoczi
On Wed, May 28, 2014 at 04:37:35PM +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 bounce buffer allocations in

Re: [Qemu-devel] [PATCH v2 02/20] block: Handle failure for potentially large allocations

2014-05-30 Thread Benoît Canet
The Wednesday 28 May 2014 à 16:37:35 (+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 bounce buffer allocations

Re: [Qemu-devel] [PATCH v2 02/20] block: Handle failure for potentially large allocations

2014-05-30 Thread Kevin Wolf
Am 30.05.2014 um 14:08 hat Benoît Canet geschrieben: The Wednesday 28 May 2014 à 16:37:35 (+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

[Qemu-devel] [PATCH v2 02/20] block: Handle failure for potentially large allocations

2014-05-28 Thread Kevin Wolf
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 bounce buffer allocations in block.c. While at it, convert bdrv_commit() from plain g_malloc()

Re: [Qemu-devel] [PATCH v2 02/20] block: Handle failure for potentially large allocations

2014-05-28 Thread Eric Blake
On 05/28/2014 08:37 AM, 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 bounce buffer allocations in block.c. While at