qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC PATCH v5 07/31] icount: implement icount requestin


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [RFC PATCH v5 07/31] icount: implement icount requesting
Date: Fri, 05 Dec 2014 12:43:48 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0


On 05/12/2014 11:55, Pavel Dovgaluk wrote:
>> > 
>> > And why is can_do_io zero? :)  Is the fix to move the place where
>> > can_do_io becomes nonzero?
> can_do_io is set by gen_io_start function.
> As I understand, it is used to protect determinism in icount mode,
> because it allows non-deterministic (port io, raising interrupt)
> operations only at the end of the translation blocks.
> When someone tries to use MMIO in the middle of TB, that TB is
> recompiled to place this instruction at the end of the block.
> 
> Do you mean that we can set can_do_io before execution of the block
> and reset it at the beginning of the execution?

Yes, we could try setting it after execution of the block and clearing
it afterwards.  Peter knows that part of icount better though (I know
mostly the timer/warping parts).

Paolo



reply via email to

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