« Previous | Next » 

Revision 39228250

ID39228250ce6cf67eb1c3799791d271f53c5c6347

Added by Markus Armbruster over 10 years ago

exec: Don't abort when we can't allocate guest memory

We abort() on memory allocation failure. abort() is appropriate for
programming errors. Maybe most memory allocation failures are
programming errors, maybe not. But guest memory allocation failure
isn't, and aborting when the user asks for more memory than we can
provide is not nice. exit(1) instead, and do it in just one place, so
the error message is consistent.

Tested-by: Christian Borntraeger <>
Signed-off-by: Markus Armbruster <>
Reviewed-by: Andreas Färber <>
Acked-by: Laszlo Ersek <>
Acked-by: Stefano Stabellini <>
Acked-by: Christian Borntraeger <>
Message-id:
Signed-off-by: Anthony Liguori <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences