From: Richard Henderson <rth@twiddle.net>
To: Yeongkyoon Lee <yeongkyoon.lee@samsung.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v5 2/3] tcg: Add declarations and templates of extended MMU helpers
Date: Tue, 09 Oct 2012 11:36:14 -0700 [thread overview]
Message-ID: <50746E9E.4080903@twiddle.net> (raw)
In-Reply-To: <1349786252-12343-3-git-send-email-yeongkyoon.lee@samsung.com>
On 10/09/2012 05:37 AM, Yeongkyoon Lee wrote:
> Add declarations and templates of extended MMU helpers.
> An extended helper takes an additional argument of the host address accessing
> a guest memory which differs from the address of the call site to the helper
> because helper call sites locate at the end of a generated code block.
...
> +#ifndef CONFIG_QEMU_LDST_OPTIMIZATION
My feedback from the last round of review is that a version of the
helper functions that take the return address should *always* be available.
There are existing issues in the target-*/foo_helper.c files where
if a helper touches memory that we do no necessarily handle any
fault properly. This is less true of system mode than user mode,
but it's still a problem.
The helper.c files ought to be changed to use these new "ra-enabled"
routines and pass GETPC(). That way a fault from a helper gets
treated *exactly* like it would if it were called from TCG generated code.
Thus, all this conditionalization should vanish.
r~
next prev parent reply other threads:[~2012-10-09 18:36 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-09 12:37 [Qemu-devel] [PATCH v5 0/3] tcg: enhance code generation quality for qemu_ld/st IRs Yeongkyoon Lee
2012-10-09 12:37 ` [Qemu-devel] [PATCH v5 1/3] configure: Add CONFIG_QEMU_LDST_OPTIMIZATION for TCG qemu_ld/st optimization Yeongkyoon Lee
2012-10-09 12:37 ` [Qemu-devel] [PATCH v5 2/3] tcg: Add declarations and templates of extended MMU helpers Yeongkyoon Lee
2012-10-09 18:36 ` Richard Henderson [this message]
2012-10-10 11:04 ` Yeongkyoon Lee
2012-10-09 12:37 ` [Qemu-devel] [PATCH v5 3/3] tcg: Optimize qemu_ld/st by generating slow paths at the end of a block Yeongkyoon Lee
2012-10-09 18:49 ` Richard Henderson
2012-10-10 4:41 ` Yeongkyoon Lee
2012-10-09 14:26 ` [Qemu-devel] [PATCH v5 0/3] tcg: enhance code generation quality for qemu_ld/st IRs Aurelien Jarno
2012-10-09 16:19 ` Aurelien Jarno
2012-10-09 16:55 ` Paolo Bonzini
2012-10-09 17:09 ` Aurelien Jarno
2012-10-10 4:17 ` Yeongkyoon Lee
2012-10-10 6:45 ` Aurelien Jarno
2012-10-10 10:34 ` Yeongkyoon Lee
2012-10-10 14:09 ` Yeongkyoon Lee
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=50746E9E.4080903@twiddle.net \
--to=rth@twiddle.net \
--cc=qemu-devel@nongnu.org \
--cc=yeongkyoon.lee@samsung.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).