[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] softmmu/physmem: Improve guest memory allocation failure err
From: |
Peter Xu |
Subject: |
Re: [PATCH] softmmu/physmem: Improve guest memory allocation failure error message |
Date: |
Fri, 20 Aug 2021 16:31:43 -0400 |
On Fri, Aug 20, 2021 at 05:52:11PM +0200, Philippe Mathieu-Daudé wrote:
> 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
>
> Slighly 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 <bmeng.cn@gmail.com>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
--
Peter Xu
- Re: [PATCH] softmmu/physmem: Improve guest memory allocation failure error message, (continued)
- Re: [PATCH] softmmu/physmem: Improve guest memory allocation failure error message, David Hildenbrand, 2021/08/23
- Re: [PATCH] softmmu/physmem: Improve guest memory allocation failure error message, Peter Maydell, 2021/08/23
- Re: [PATCH] softmmu/physmem: Improve guest memory allocation failure error message, David Hildenbrand, 2021/08/23
- Re: [PATCH] softmmu/physmem: Improve guest memory allocation failure error message, Philippe Mathieu-Daudé, 2021/08/23
- Re: [PATCH] softmmu/physmem: Improve guest memory allocation failure error message, David Hildenbrand, 2021/08/23
- Re: [PATCH] softmmu/physmem: Improve guest memory allocation failure error message, Philippe Mathieu-Daudé, 2021/08/23
- Re: [PATCH] softmmu/physmem: Improve guest memory allocation failure error message, David Hildenbrand, 2021/08/23
- Re: [PATCH] softmmu/physmem: Improve guest memory allocation failure error message, Dr. David Alan Gilbert, 2021/08/24
- Re: [PATCH] softmmu/physmem: Improve guest memory allocation failure error message, David Hildenbrand, 2021/08/24
- Re: [PATCH] softmmu/physmem: Improve guest memory allocation failure error message, Igor Mammedov, 2021/08/24
Re: [PATCH] softmmu/physmem: Improve guest memory allocation failure error message,
Peter Xu <=
Re: [PATCH] softmmu/physmem: Improve guest memory allocation failure error message, Bin Meng, 2021/08/21