All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
To: Bin Meng <bin.meng@processmission.com>, QEMU <qemu-devel@nongnu.org>
Cc: "Philippe Mathieu-Daudé" <philmd@redhat.com>,
	"Bin Meng" <bmeng.cn@gmail.com>, "Peter Xu" <peterx@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@mailo.com>
Subject: Re: [PATCH v2 1/1] system/physmem: Improve guest memory allocation failure error message
Date: Mon, 24 Aug 2026 23:20:43 +0200	[thread overview]
Message-ID: <7c8fde9b-9887-4aff-9218-7065e1615d23@oss.qualcomm.com> (raw)
In-Reply-To: <20260822122710.3731595-2-bin.meng@processmission.com>

On 22/8/26 14:27, Bin Meng wrote:
> From: Philippe Mathieu-Daudé <philmd@redhat.com>
> 
> 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 <bmeng.cn@gmail.com>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> Reviewed-by: Peter Xu <peterx@redhat.com>
> Tested-by: Bin Meng <bmeng.cn@gmail.com>
> Signed-off-by: Bin Meng <bin.meng@processmission.com>
> 
> ---
> 
> 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

Thanks! :)

Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>

> 
>   system/physmem.c | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)


      parent reply	other threads:[~2026-08-24 21:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-22 12:27 [PATCH v2 0/1] system/physmem: Improve guest memory allocation failure diagnostics Bin Meng
2026-08-22 12:27 ` [PATCH v2 1/1] system/physmem: Improve guest memory allocation failure error message Bin Meng
2026-08-24 19:24   ` Peter Xu
2026-08-24 21:20   ` Philippe Mathieu-Daudé [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7c8fde9b-9887-4aff-9218-7065e1615d23@oss.qualcomm.com \
    --to=philmd@oss.qualcomm.com \
    --cc=bin.meng@processmission.com \
    --cc=bmeng.cn@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=peterx@redhat.com \
    --cc=philmd@mailo.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.