From: "Emilio G. Cota" <cota@braap.org>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org,
richard.henderson@linaro.org, pbonzini@redhat.com
Subject: Re: [Qemu-devel] [RFC PATCH 0/6] Convert softmmu-template into normal code
Date: Fri, 20 Apr 2018 14:35:57 -0400 [thread overview]
Message-ID: <20180420183557.GA29359@flamenco> (raw)
In-Reply-To: <20180420155045.18862-1-alex.bennee@linaro.org>
On Fri, Apr 20, 2018 at 16:50:39 +0100, Alex Bennée wrote:
> Any questions/thoughts/comments?
Very nice!
I modified the style a little bit, namely to pass checkpatch and to
improve grepability by having
foo __attribute__((flatten))
function(arg1, arg2, ...)
as opposed to
foo __attribute__((flatten)) function(arg1,
arg2,
...)
I also changed the patches to make the series simpler: one patch
to add softmmu.c (without compiling it yet), one patch to
actually use softmmu.c, and a final patch to remove the template
file.
You can get my modifications from:
https://github.com/cota/qemu/tree/softmmu
Note that there are two stray references to softmmu_template
in comments:
$ git grep -i 'softmmu_template'
accel/tcg/translate-all.c: * Called via softmmu_template.h when code areas are written to with
accel/tcg/translate-all.c: * Called by softmmu_template.h, with iothread mutex not held.
I don't have time right now to test performance, but at least
the only function I checked (helper_ret_ldub_mmu) has only grown
in size by a little bit, from 584 bytes to 614.
The executable is now larger:
- before:
text data bss dec hex filename
9864951 2944592 4371560 17181103 10629af aarch64-softmmu/qemu-system-aarch64
- after:
text data bss dec hex filename
9892095 2944592 4371560 17208247 10693b7 aarch64-softmmu/qemu-system-aarch64
By removing flatten we can decrease the overall size, but this might affect perf:
text data bss dec hex filename
9849967 2944592 4371560 17166119 105ef27 aarch64-softmmu/qemu-system-aarch64
This is a slow path though so it might be worth looking into.
BTW I haven't done any testing, just compile-tested for all targets.
So overall I think this should be upgraded from RFC to a proper patch
series; hopefully we can get this done for 2.13!
Thanks,
Emilio
next prev parent reply other threads:[~2018-04-20 18:36 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-20 15:50 [Qemu-devel] [RFC PATCH 0/6] Convert softmmu-template into normal code Alex Bennée
2018-04-20 15:50 ` [Qemu-devel] [RFC PATCH 1/6] accel/tcg: export some cputlb functions Alex Bennée
2018-04-20 15:50 ` [Qemu-devel] [RFC PATCH 2/6] accel/tcg: new softmmu.c with DATA_SIZE=1 Alex Bennée
2018-04-20 15:50 ` [Qemu-devel] [RFC PATCH 3/6] accel/tcg: add DATA_SIZE = 2 to softmmu Alex Bennée
2018-04-20 15:50 ` [Qemu-devel] [RFC PATCH 4/6] accel/tcg: create load_helper Alex Bennée
2018-04-20 15:50 ` [Qemu-devel] [RFC PATCH 5/6] accel/tcg: create store_helper Alex Bennée
2018-04-20 15:50 ` [Qemu-devel] [RFC PATCH 6/6] accel/tcg: convert 4/8 byte access and remove softmmu_template Alex Bennée
2018-04-20 21:36 ` Richard Henderson
2018-04-20 16:01 ` [Qemu-devel] [RFC PATCH 0/6] Convert softmmu-template into normal code no-reply
2018-04-20 16:05 ` no-reply
2018-04-20 16:16 ` Paolo Bonzini
2018-04-20 16:22 ` Peter Maydell
2018-04-20 16:26 ` no-reply
2018-04-20 18:35 ` Emilio G. Cota [this message]
2018-04-20 18:43 ` Alex Bennée
2018-04-20 19:11 ` Philippe Mathieu-Daudé
2018-04-20 20:02 ` Emilio G. Cota
2018-04-20 19:17 ` Alex Bennée
2018-04-23 10:35 ` Paolo Bonzini
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=20180420183557.GA29359@flamenco \
--to=cota@braap.org \
--cc=alex.bennee@linaro.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@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).