On Sat, Aug 22, 2026 at 08:27:08PM +0800, Bin Meng wrote: > From: Philippe Mathieu-Daudé <[email protected]> > > When Linux refuses to overcommit a seriously wild allocation we get: > > $ qemu-system-i386 -m 40000000 > qemu-system-i386: cannot set up guest memory 'pc.ram': > Cannot allocate memory > > Slightly improve the error message, displaying the memory size > requested (in case the user didn't expect unspecified memory size > unit is in MiB): > > $ qemu-system-i386 -m 40000000 > qemu-system-i386: Cannot set up 38.1 TiB of guest memory 'pc.ram': > Cannot allocate memory > > Reported-by: Bin Meng <[email protected]> > Signed-off-by: Philippe Mathieu-Daudé <[email protected]> > Reviewed-by: Peter Xu <[email protected]> > Tested-by: Bin Meng <[email protected]> > Signed-off-by: Bin Meng <[email protected]> > > --- > > Changes in v2: > - Rebase onto current master > - Update the source path from softmmu/physmem.c to system/physmem.c > - Fix a typo in the commit message > - Collect Peter Xu's Reviewed-by and Bin Meng's Tested-by
queued, thanks. -- Peter Xu
