qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Error handling in realize() methods


From: Peter Maydell
Subject: Re: [Qemu-devel] Error handling in realize() methods
Date: Wed, 9 Dec 2015 11:47:49 +0000

On 9 December 2015 at 10:29, Dr. David Alan Gilbert <address@hidden> wrote:
> (OK, to be honest I think we should protect every allocation - but I do
> have sympathy with the complexity/testing arguments).

My view on this is that Linux overcommits, so the actual likely
way that "oops, out of memory" will manifest is by some page not
being able to be allocated-on-demand, at which point your process
is toast anyway. Checking malloc returns is really only checking
your virtual address space allocation, which typically speaking
always succeeds, except in the "we tried to get gigabytes at
once" case...

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]