qemu-devel
[Top][All Lists]
Advanced

[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



reply via email to

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