From: Pankaj Gupta <pagupta@redhat.com>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: qemu-devel@nongnu.org, Igor Mammedov <imammedo@redhat.com>,
Eduardo Habkost <ehabkost@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v3 0/2] hostmem-file: reject invalid pmem file sizes
Date: Thu, 14 Feb 2019 03:50:18 -0500 (EST) [thread overview]
Message-ID: <2037886390.964185.1550134218213.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20190214031004.32522-1-stefanha@redhat.com>
>
> v3:
> * Added Patch 1 by Igor [Wei]
> * Moved pmem size check after mem_path check [Wei]
>
> Guests started with NVDIMMs larger than the underlying host file produce
> confusing errors inside the guest. This happens because the guest
> accesses pages beyond the end of the file.
>
> Check the pmem file size on startup and print a clear error message if
> the size is invalid.
>
> Igor Mammedov (1):
> hostmem: simplify ifdef-s in file_backend_memory_alloc()
>
> Stefan Hajnoczi (1):
> hostmem-file: reject invalid pmem file sizes
>
> include/qemu/osdep.h | 13 ++++++++++
> backends/hostmem-file.c | 32 +++++++++++++++++++++----
> util/oslib-posix.c | 53 +++++++++++++++++++++++++++++++++++++++++
> util/oslib-win32.c | 5 ++++
> 4 files changed, 98 insertions(+), 5 deletions(-)
>
> --
> 2.20.1
Both the patches look good to me.
Reviewed-by: Pankaj Gupta <pagupta@redhat.com>
prev parent reply other threads:[~2019-02-14 8:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-14 3:10 [Qemu-devel] [PATCH v3 0/2] hostmem-file: reject invalid pmem file sizes Stefan Hajnoczi
2019-02-14 3:10 ` [Qemu-devel] [PATCH v3 1/2] hostmem: simplify ifdef-s in file_backend_memory_alloc() Stefan Hajnoczi
2019-02-14 7:26 ` Wei Yang
2019-02-14 8:16 ` Stefan Hajnoczi
2019-03-01 10:40 ` Igor Mammedov
2019-03-01 16:47 ` Stefan Hajnoczi
2019-03-06 10:23 ` Laurent Vivier
2019-02-14 3:10 ` [Qemu-devel] [PATCH v3 2/2] hostmem-file: reject invalid pmem file sizes Stefan Hajnoczi
2019-02-14 4:19 ` Wei Yang
2019-02-14 8:15 ` Stefan Hajnoczi
2019-02-14 8:20 ` Wei Yang
2019-02-14 11:01 ` Igor Mammedov
2019-03-08 17:53 ` Eduardo Habkost
2019-02-14 8:50 ` Pankaj Gupta [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=2037886390.964185.1550134218213.JavaMail.zimbra@redhat.com \
--to=pagupta@redhat.com \
--cc=ehabkost@redhat.com \
--cc=imammedo@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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.