qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: riku.voipio@linaro.org
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RFC] [PATCH 0/5] linux-user: refactor do_syscall()
Date: Fri, 12 Oct 2012 13:47:30 -0700	[thread overview]
Message-ID: <507881E2.3070201@twiddle.net> (raw)
In-Reply-To: <cover.1350063473.git.riku.voipio@linaro.org>

On 10/12/2012 11:24 AM, riku.voipio@linaro.org wrote:
> From: Riku Voipio <riku.voipio@linaro.org>
> 
> Currently linux-user handles system calls with a 3000+ line switch/case construct
> in do_syscall(). Some syscalls are implemented inline in the switch/case, others
> as separate functions, and the rest as mix of both.
> 
> As the first step of the cleanup, I'd like to move implementation of each syscall
> completely to their own functions. While at it, we define more standard interface between
> do_syscall() and the functions implementing the system calls: system call functions take
> parameter as raw abi_long, and leave the host to target errno conversion to do_syscall.

My only concern is leaving the host-to-target conversion to do_syscall.
I think the return value from do_foo should be the proper target return value.

My concern here are those handful of syscalls for which we have target-specific
error reporting mechanisms, and for which those reporting mechanisms are exploited
in some nefarious way.  E.g. sigprocmask and getpriority.


r~

  parent reply	other threads:[~2012-10-12 20:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-12 18:24 [Qemu-devel] [RFC] [PATCH 0/5] linux-user: refactor do_syscall() riku.voipio
2012-10-12 18:24 ` [Qemu-devel] [PATCH 1/5] linux-user: move exit to own function riku.voipio
2012-10-12 18:24 ` [Qemu-devel] [PATCH 2/5] linux-user: move read " riku.voipio
2012-10-12 18:24 ` [Qemu-devel] [PATCH 3/5] linux-user: move write " riku.voipio
2012-10-12 18:24 ` [Qemu-devel] [PATCH 4/5] linux-user: complete do_open function isolation riku.voipio
2012-10-12 18:24 ` [Qemu-devel] [PATCH 5/5] linux-user: do_openat wrapper added riku.voipio
2012-10-12 20:47 ` Richard Henderson [this message]
2012-10-13 10:30   ` [Qemu-devel] [RFC] [PATCH 0/5] linux-user: refactor do_syscall() Peter Maydell
2012-10-13 10:09 ` Blue Swirl

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=507881E2.3070201@twiddle.net \
    --to=rth@twiddle.net \
    --cc=qemu-devel@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).