[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] cpu-exec: Do not invalidate original TB in c
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v2] cpu-exec: Do not invalidate original TB in cpu_exec_nocache() |
Date: |
Wed, 22 Jul 2015 13:45:32 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 |
On 22/07/2015 08:15, Sergey Fedorov wrote:
> ping.
Hi, this patch was a bit late for QEMU 2.4, but it will be included in 2.5.
Paolo
> On 30.06.2015 12:35, Sergey Fedorov wrote:
>> > Instead of invalidating an original TB in cpu_exec_nocache()
>> > prematurely, just save a link to it in the temporary generated TB. If
>> > cpu_io_recompile() is raised subsequently from the temporary TB,
>> > invalidate the original one as well. That allows reusing the original TB
>> > each time cpu_exec_nocache() is called to handle expired instruction
>> > counter in icount mode.
>> >
>> > Signed-off-by: Sergey Fedorov <address@hidden>
>> > ---
>> >
>> > v2:
>> > * take tcg_ctx.tb_ctx.tb_invalidated_flag into account