qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] How to break cpu_tb_exec()?
@ 2015-07-03 17:02 Jun Koi
  2015-07-03 17:06 ` Peter Maydell
  0 siblings, 1 reply; 7+ messages in thread
From: Jun Koi @ 2015-07-03 17:02 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

[-- Attachment #1: Type: text/plain, Size: 489 bytes --]

Hello,

I am looking at how the main thread interrupts TCG thread. Inside
cpu-exec.c, in function cpu_tb_exec(), I can see that it executes one TB,
and when this is over, it can check for events from other threads (like
main thread). This is the reason why TCG thread can be interrupted.

Is my understanding correct?

If this is true, then what if this TB is running infinitely, and do not
return, or it is in a very long loop? In this case, TCG thread cannot be
interrupted?

Thank you.

[-- Attachment #2: Type: text/html, Size: 594 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-07-21  7:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-03 17:02 [Qemu-devel] How to break cpu_tb_exec()? Jun Koi
2015-07-03 17:06 ` Peter Maydell
2015-07-03 17:10   ` Jun Koi
2015-07-03 17:12     ` Peter Maydell
2015-07-03 17:24       ` Jun Koi
2015-07-06 11:26         ` Lluís Vilanova
2015-07-21  7:02           ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).