[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 03/15] tcg: tcg_handle_interrupt() function
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 03/15] tcg: tcg_handle_interrupt() function |
Date: |
Thu, 22 Jun 2017 11:29:46 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 |
On 22/06/2017 09:06, Zhong Yang wrote:
>> On 21/06/2017 12:19, Yang Zhong wrote:
>>> Move tcg_handle_interrupt() from translate-common.c to
>>> translate-all.c.
>>>
>>> Signed-off-by: Yang Zhong <address@hidden>
>> Why?
>>
>> Paolo
>>
> Hello Paolo,
>
> translate-common.c only include one tcg_handle_interrupt() fucntion, when i
> move tcpu_interrupt_handler = tcg_handle_interrupt in tcg_exec_init() for
> disable-tcg,
> maybe moving the tcg_handle_interrupt() function definition into same file
> with tcg_exec_init()
> function is better. those are like cpu_interrupt_handler =
> kvm_handle_interrupt did in kvm-all.c. thanks!
Looking again at translate-common.c, it makes more sense to merge it
with accel/tcg/tcg-all.c. The tcg_handle_interrupt can become static
and the cpu_interrupt_handler assignment can go in tcg-all.c's tcg_init
function.
The declaration for cpu_interrupt_handler can be placed in qom/cpu.c.
Paolo
- Re: [Qemu-devel] [PATCH 01/15] configure: add the disable-tcg option, (continued)
[Qemu-devel] [PATCH 02/15] vl: add CONFIG_TCG for tcg related code, Yang Zhong, 2017/06/21
[Qemu-devel] [PATCH 04/15] tcg: change tcg_enabled(), Yang Zhong, 2017/06/21
[Qemu-devel] [PATCH 05/15] tcg: move page_size_init() function, Yang Zhong, 2017/06/21
[Qemu-devel] [PATCH 03/15] tcg: tcg_handle_interrupt() function, Yang Zhong, 2017/06/21
[Qemu-devel] [PATCH 06/15] kvmvapic: remove tcg related code, Yang Zhong, 2017/06/21
[Qemu-devel] [PATCH 08/15] tcg: make cpu_get_fp80()/cpu_set_fp80() static, Yang Zhong, 2017/06/21
[Qemu-devel] [PATCH 07/15] tcg: move cpu_sync_bndcs_hflags() function, Yang Zhong, 2017/06/21
[Qemu-devel] [PATCH 10/15] tcg: move tb related lock functions, Yang Zhong, 2017/06/21
[Qemu-devel] [PATCH 09/15] tcg: add the tcg-stub.c file into accel/stubs/, Yang Zhong, 2017/06/21
[Qemu-devel] [PATCH 11/15] tcg: split cpu_set_mxcsr()/cpu_set_fpuc(), Yang Zhong, 2017/06/21
Re: [Qemu-devel] [PATCH 11/15] tcg: split cpu_set_mxcsr()/cpu_set_fpuc(), Richard Henderson, 2017/06/21