From: Claudio Fontana <cfontana@suse.de>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: "Alex Bennée" <alex.bennee@linaro.org>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
qemu-devel@nongnu.org
Subject: Re: [PATCH v2 2/3] accel/tcg: split tcg_start_vcpu_thread
Date: Thu, 15 Oct 2020 15:28:37 +0200 [thread overview]
Message-ID: <4bd9bc07-d474-16a6-7f7f-ec9c4390657f@suse.de> (raw)
In-Reply-To: <3e46ce6a-e2a9-87f8-d301-ec41ff320938@suse.de>
On 10/15/20 2:33 PM, Claudio Fontana wrote:
> On 10/14/20 10:08 PM, Richard Henderson wrote:
>> On 10/14/20 12:23 PM, Claudio Fontana wrote:
>>> +++ b/accel/tcg/tcg-cpus-mttcg.h
>>> @@ -10,14 +10,4 @@
>>> #ifndef TCG_CPUS_MTTCG_H
>>> #define TCG_CPUS_MTTCG_H
>>>
>>> -/*
>>> - * Multi-threaded TCG
>>> - *
>>> - * In the multi-threaded case each vCPU has its own thread. The TLS
>>> - * variable current_cpu can be used deep in the code to find the
>>> - * current CPUState for a given thread.
>>> - */
>>> -
>>> -void *tcg_cpu_thread_fn(void *arg);
>>> -
>>> #endif /* TCG_CPUS_MTTCG_H */
>>
>> Hum. Do we really need to create these headers in the previous patch? Because
>> now we have an empty one.
>>
>> Why not just put all of tcg-cpus-*.h into tcg-cpus.h?
>>
>> Otherwise this looks ok.
>>
>>
>> r~
>>
>
> There are some symbols required between -icount, -rr, and -mttcg, and in particular in the -mttcg case, this requirement goes away after start_vcpu is also refactored.
>
> Will take a look again, at the very least the mttcg.h should be removed completely.
>
> Ciao,
>
> Claudio
>
To be more precise,
tcg-cpus-icount.h ends up with functions that icount provides (to -rr) to be able to consider icount in the part of the code that is mostly rr.
tcg-cpus-rr.h contains the functions that "rr" provides (to -icount), since icount just reuses those.
Ciao,
Claudio
next prev parent reply other threads:[~2020-10-15 13:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-14 19:23 [PATCH v2 0/3] tcg-cpus: split into 3 tcg variants Claudio Fontana
2020-10-14 19:23 ` [PATCH v2 1/3] accel/tcg: split CpusAccel into three TCG variants Claudio Fontana
2020-10-14 19:37 ` Philippe Mathieu-Daudé
2020-10-14 19:47 ` Richard Henderson
2020-10-14 19:23 ` [PATCH v2 2/3] accel/tcg: split tcg_start_vcpu_thread Claudio Fontana
2020-10-14 20:08 ` Richard Henderson
2020-10-15 12:33 ` Claudio Fontana
2020-10-15 13:28 ` Claudio Fontana [this message]
2020-10-14 19:23 ` [PATCH v2 3/3] accel/tcg: rename tcg-cpus functions to match module name Claudio Fontana
2020-10-14 19:29 ` Philippe Mathieu-Daudé
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=4bd9bc07-d474-16a6-7f7f-ec9c4390657f@suse.de \
--to=cfontana@suse.de \
--cc=alex.bennee@linaro.org \
--cc=f4bug@amsat.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).