can you forward me the patch please. Peter. Also, as far as I
understand, tb unlinking can only happen in 2 cases.

1. some other tbs being invalidated.
2. interrrupt pending

Am I right ?

Thanks

Xin


On Fri, Dec 9, 2011 at 6:45 PM, Peter Maydell <peter.mayd...@linaro.org> wrote:
> On 9 December 2011 18:44, Xin Tong <xerox.time.t...@gmail.com> wrote:
>> Currently, QEMU unchains TBs if there is an interrupt pending. I would
>> like to know whether there is any reason behind this ? (why not
>> checking interrupt status in the beginning of every tb ?)
>
> The theory is that it's faster overall to do a slightly slow
> operation (tb unlinking) on interrupts rather than do a check
> at the beginning of every tb (happens a lot in the normal
> code path).
>
> However the tb unlinking code is racy and personally I think
> we should get rid of it in favour of a simpler scheme like a
> flag check. I have some prototype patches kicking around for
> this.
>
> -- PMM

Reply via email to