Re: [Qemu-devel] setjmp and longjmp in qemu

2012-04-23 Thread Xin Tong
so it is not possible to have a longjmp happening while an emulated cpu is in the middle of translating code ( i.e. in frontend or tcg). Xin On Mon, Apr 23, 2012 at 12:02 PM, Peter Maydell wrote: > On 23 April 2012 01:06, Xin Tong wrote: >> QEMU uses this very hard to understand setjmp and lon

Re: [Qemu-devel] setjmp and longjmp in qemu

2012-04-23 Thread Peter Maydell
On 23 April 2012 01:06, Xin Tong wrote: > QEMU uses this very hard to understand setjmp and longjmp to handle > asynchronous interrupt. what i do not understand is that say one of > the process is doing a context switching in the guest os. tlb_flush > gets called, what if in the middle of tlb_flus

[Qemu-devel] setjmp and longjmp in qemu

2012-04-22 Thread Xin Tong
QEMU uses this very hard to understand setjmp and longjmp to handle asynchronous interrupt. what i do not understand is that say one of the process is doing a context switching in the guest os. tlb_flush gets called, what if in the middle of tlb_flush, an interrupt comes in ( longjmp executed ). d