[Qemu-devel] When do we need to do TB unchaining?

2011-09-29 Thread 陳韋任
Hi, all I am looking for when TB unchaining is needed. Currently, I can only see there are three spots (take i386-softmmu as an example): 1. cpu_interrupt: When virtual devices raise interrupts, eventually apic_local_deliver (apic.c) will call cpu_interrupt. cpu_interrupt will set up

Re: [Qemu-devel] When do we need to do TB unchaining?

2011-09-29 Thread Blue Swirl
On Thu, Sep 29, 2011 at 7:55 AM, 陳韋任 che...@iis.sinica.edu.tw wrote: Hi, all  I am looking for when TB unchaining is needed. Currently, I can only see there are three spots (take i386-softmmu as an example): 1. cpu_interrupt:  When virtual devices raise interrupts, eventually

Re: [Qemu-devel] When do we need to do TB unchaining?

2011-09-29 Thread 陳韋任
Hi, Blue I don't think it is possible. The only non-device cases for x86 are tb_invalidate_phys_page_range(), cpu_x86_set_a20() and do_inject_x86_mce(), none of which should be reachable from user emulator. Maybe these should be #ifdeffed out from user emulator builds. I am not sure if