From: Michael Tokarev <mjt@tls.msk.ru>
To: Petar Jovanovic <petar.jovanovic@rt-rk.com>
Cc: qemu-trivial@nongnu.org, riku.voipio@linaro.org,
qemu-devel@nongnu.org, petar.jovanovic@imgtec.com
Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] linux-user: correct argument number for sys_mremap and sys_splice
Date: Tue, 23 Jul 2013 21:18:14 +0400 [thread overview]
Message-ID: <51EEBAD6.4020607@msgid.tls.msk.ru> (raw)
In-Reply-To: <1374598810-78021-1-git-send-email-petar.jovanovic@rt-rk.com>
23.07.2013 21:00, Petar Jovanovic wrote:
> From: Petar Jovanovic <petar.jovanovic@imgtec.com>
>
> sys_mremap missed 5th argument (new_address), which caused examples that
> remap to a specific address to fail.
> sys_splice missed 5th and 6th argument which caused different examples to
> fail.
> This change has an effect on MIPS target only.
While splice is obvious and appears to be correct, with mremap I'm not
this sure. The last, 5th argument of mremap(), which is `void *new_address',
is optional and may be either present or not. So, without understanding
how the underlying tables/code works, I'm not really sure if the resulting
change will work or not. On the other hand, sys_open is also declared as
having 3 arguments while the 3rd one (mode) is also optional, so the patch
appears to be correct there as well, so I was almost ready to apply it,
until your last comment which states that the change has only effect on
MIPS. Which is quite puzzling to me who, again, does not really know
how the code works.
So either the patch isn't trivial enough, or maybe you can provide some
more verbose explanation... ;)
Thanks,
/mjt
next prev parent reply other threads:[~2013-07-23 17:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-23 17:00 [Qemu-devel] [PATCH] linux-user: correct argument number for sys_mremap and sys_splice Petar Jovanovic
2013-07-23 17:18 ` Michael Tokarev [this message]
2013-07-23 17:33 ` [Qemu-devel] [Qemu-trivial] " Peter Maydell
2013-07-24 16:22 ` Petar Jovanovic
2013-07-25 6:23 ` Michael Tokarev
2013-07-28 22:38 ` [Qemu-devel] " Aurelien Jarno
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=51EEBAD6.4020607@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=petar.jovanovic@imgtec.com \
--cc=petar.jovanovic@rt-rk.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=riku.voipio@linaro.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 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).