[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 01/16] cpu-timers, icount: new modules
From: |
Richard Henderson |
Subject: |
Re: [PATCH v6 01/16] cpu-timers, icount: new modules |
Date: |
Tue, 1 Sep 2020 10:28:12 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 9/1/20 12:21 AM, Claudio Fontana wrote:
> refactoring of cpus.c continues with cpu timer state extraction.
>
> cpu-timers: responsible for the softmmu cpu timers state,
> including cpu clocks and ticks.
>
> icount: counts the TCG instructions executed. As such it is specific to
> the TCG accelerator. Therefore, it is built only under CONFIG_TCG.
>
> One complication is due to qtest, which uses an icount field to warp time
> as part of qtest (qtest_clock_warp).
>
> In order to solve this problem, provide a separate counter for qtest.
>
> This requires fixing assumptions scattered in the code that
> qtest_enabled() implies icount_enabled(), checking each specific case.
>
> Signed-off-by: Claudio Fontana <cfontana@suse.de>
> ---
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
- Re: [PATCH v6 05/16] cpus: extract out qtest-specific code to accel/qtest, (continued)
- [PATCH v6 04/16] cpus: extract out TCG-specific code to accel/tcg, Claudio Fontana, 2020/09/01
- [PATCH v6 07/16] cpus: extract out hax-specific code to target/i386/, Claudio Fontana, 2020/09/01
- [PATCH v6 10/16] cpus: cleanup now unneeded includes, Claudio Fontana, 2020/09/01
- [PATCH v6 01/16] cpu-timers, icount: new modules, Claudio Fontana, 2020/09/01
- [PATCH v6 06/16] cpus: extract out kvm-specific code to accel/kvm, Claudio Fontana, 2020/09/01
- [PATCH v6 08/16] cpus: extract out whpx-specific code to target/i386/, Claudio Fontana, 2020/09/01
- [PATCH v6 09/16] cpus: extract out hvf-specific code to target/i386/hvf/, Claudio Fontana, 2020/09/01
- [PATCH v6 11/16] cpus: remove checks for non-NULL cpus_accel, Claudio Fontana, 2020/09/01
- [PATCH v6 12/16] cpus: add handle_interrupt to the CpusAccel interface, Claudio Fontana, 2020/09/01