Terminate emulation on memory allocation failure (Avi Kivity)
commit8a1d02aba9f986ca03d854184cd432ee98bcd179
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 5 Feb 2009 22:05:49 +0000 (5 22:05 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 5 Feb 2009 22:05:49 +0000 (5 22:05 +0000)
tree358d40825558e8afc7e432db03e74f61750d5e17
parent1fb8648d4a4e67df16fe0392590cb5ede3296387
Terminate emulation on memory allocation failure (Avi Kivity)

Memory allocation failures are a very rare condition on virtual-memory
hosts.  They are also very difficult to handle correctly (especially in a
hardware emulation context).  Because of this, it is better to gracefully
terminate emulation rather than executing untested or even unwritten recovery
code paths.

This patch changes the qemu memory allocation routines to terminate emulation
if an allocation failure is encountered.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6526 c046a42c-6fe2-441c-8c8c-71466251a162
qemu-malloc.c