qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] plugins: optimize cpu_index code generation


From: Pierrick Bouvier
Subject: Re: [PATCH v2] plugins: optimize cpu_index code generation
Date: Mon, 16 Dec 2024 09:54:09 -0800
User-agent: Mozilla Thunderbird

Hi Richard,

On 11/29/24 05:29, Richard Henderson wrote:
On 11/28/24 15:38, Pierrick Bouvier wrote:
When running with a single vcpu, we can return a constant instead of a
load when accessing cpu_index.
A side effect is that all tcg operations using it are optimized, most
notably scoreboard access.
When running a simple loop in user-mode, the speedup is around 20%.

Signed-off-by: Pierrick Bouvier<pierrick.bouvier@linaro.org>

---

v2:
- no need to do a flush, as user-mode already does it when spawning a
    second cpu (to honor CF_PARALLEL flags).
- change condition detection to use CF_PARALLEL instead
---
   accel/tcg/plugin-gen.c | 9 +++++++++
   1 file changed, 9 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~

any chance you could pull that as part of one of your series?

Thanks,
Pierrick



reply via email to

[Prev in Thread] Current Thread [Next in Thread]