[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] qemu: improve hugepage allocation failure messa
From: |
Haozhong Zhang |
Subject: |
Re: [Qemu-devel] [PATCH] qemu: improve hugepage allocation failure message |
Date: |
Wed, 10 Jan 2018 04:16:16 +0800 |
User-agent: |
NeoMutt/20171027 |
On 01/09/18 17:37 -0200, Marcelo Tosatti wrote:
>
> Improve hugepage allocation failure message, indicating
> whats happening to the user.
>
> Signed-off-by: Marcelo Tosatti <address@hidden>
>
> diff --git a/exec.c b/exec.c
> index 4722e521d4..439abedb98 100644
> --- a/exec.c
> +++ b/exec.c
> @@ -1643,7 +1643,8 @@ static void *file_ram_alloc(RAMBlock *block,
> block->flags & RAM_SHARED);
> if (area == MAP_FAILED) {
> error_setg_errno(errp, errno,
> - "unable to map backing store for guest RAM");
> + "unable to map backing store for guest RAM, "
> + "falling back to malloc based RAM allocation");
> return NULL;
> }
>
The backing store here is not always hugetlbfs, e.g., it can be NVDIMM
and even regular files. In those cases, the failure of file_ram_alloc()
does not fall back to malloc.
Haozhong