Received: from eggs.gnu.org ([208.118.235.92]:60268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEYDR-0004lh-Vz for qemu-devel@nongnu.org; Sun, 01 Apr 2012 23:46:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEYDQ-0001i4-3n for qemu-devel@nongnu.org; Sun, 01 Apr 2012 23:46:01 -0400 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:55386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEYDP-0001hT-EL for qemu-devel@nongnu.org; Sun, 01 Apr 2012 23:46:00 -0400 Received: from csmailer.cs.nctu.edu.tw (localhost [127.0.0.1]) by csmailer.cs.nctu.edu.tw (Postfix) with ESMTP id 06EA2F09 for ; Mon, 2 Apr 2012 11:45:43 +0800 (CST) Received: from alumni.cs.nctu.edu.tw (alumni.cs.nctu.edu.tw [140.113.235.116]) by csmailer.cs.nctu.edu.tw (Postfix) with ESMTP id CB735F08 for ; Mon, 2 Apr 2012 11:45:42 +0800 (CST) Received: (from chenwj@localhost) by alumni.cs.nctu.edu.tw (8.14.4/8.14.4/Submit) id q323jgIt063166 for qemu-devel@nongnu.org; Mon, 2 Apr 2012 11:45:42 +0800 (CST) (envelope-from chenwj) Date: Mon, 2 Apr 2012 11:45:42 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7?= Message-ID: <20120402034542.GA59901@cs.nctu.edu.tw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Why we need unlink tb when cpu_interrupt/cpu_exit get called? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi all, I am wondering why we need to unlink tb when cpu_interrupt/cpu_exit is called, and want to know what happened if we don't unlink tb. In theory, QEMU want the execution flow comes back from code cache to QEMU itself so that interrupts can be handled as soon as possible. However, I ran linux-0.2.img with a modified QEMU whose cpu_unlink_tb does nothing. Everything seems work fine. Is this experiment too trivial to show what bad things happened when we don't unlink tb? Thanks! :) Regards, chenwj --=20 Wei-Ren Chen (=E9=99=B3=E9=9F=8B=E4=BB=BB) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj