From: "Michael S. Tsirkin" <mst@redhat.com>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: Zhang Yi <yi.z.zhang@linux.intel.com>,
Khem Raj <raj.khem@gmail.com>,
qemu-devel@nongnu.org
Subject: Re: [PATCH] Define MAP_SYNC and MAP_SHARED_VALIDATE on needed linux systems
Date: Tue, 22 Mar 2022 10:44:03 -0400 [thread overview]
Message-ID: <20220322104150-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <b24f3ca8-da88-3e3d-771b-74544b7b556b@linaro.org>
On Tue, Mar 22, 2022 at 07:05:05AM -0700, Richard Henderson wrote:
> On 3/21/22 10:20, Khem Raj wrote:
> > linux only wires MAP_SYNC and MAP_SHARED_VALIDATE for architectures
> > which include asm-generic/mman.h and mips/powerpc are not including this
> > file in linux/mman.h, therefore these should be defined for such
> > architectures on Linux as well.
>
> This is not precisely correct.
>
> MAP_SHARED_VALIDATE is defined in <linux/mman.h> for all architectures.
>
> MAP_SYNC is defined in <asm-generic/mman-common.h>, which is included by
> powerpc <asm/mman.h>. But you are correct that this is missing for mips.
OK, sounds like the commit log should be tweaked and the patch reposted.
The patch itself looks ok to me
Acked-by: Michael S. Tsirkin <mst@redhat.com>
mips tree I guess?
> > @@ -10,14 +10,18 @@
> > * later. See the COPYING file in the top-level directory.
> > */
> > +#include "qemu/osdep.h"
> > #ifdef CONFIG_LINUX
> > #include <linux/mman.h>
> > -#else /* !CONFIG_LINUX */
> > +#endif /* CONFIG_LINUX */
> > +
> > +#ifndef MAP_SYNC
> > #define MAP_SYNC 0x0
> > +#endif /* MAP_SYNC */
> > +#ifndef MAP_SHARED_VALIDATE
> > #define MAP_SHARED_VALIDATE 0x0
> > -#endif /* CONFIG_LINUX */
> > +#endif /* MAP_SHARED_VALIDATE */
> > -#include "qemu/osdep.h"
>
> The patch is correct, just need to fix the description.
>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
>
> r~
next prev parent reply other threads:[~2022-03-22 14:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-21 17:20 [PATCH] Define MAP_SYNC and MAP_SHARED_VALIDATE on needed linux systems Khem Raj
2022-03-22 14:05 ` Richard Henderson
2022-03-22 14:44 ` Michael S. Tsirkin [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-03-21 17:16 Khem Raj
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=20220322104150-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=raj.khem@gmail.com \
--cc=richard.henderson@linaro.org \
--cc=yi.z.zhang@linux.intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).