From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:58774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaViQ-0007Xg-Fm for qemu-devel@nongnu.org; Sat, 25 Jun 2011 12:28:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QaViO-0005LP-J4 for qemu-devel@nongnu.org; Sat, 25 Jun 2011 12:28:14 -0400 Received: from mta-1.ms.rz.rwth-aachen.de ([134.130.7.72]:40303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaViO-0005LB-1y for qemu-devel@nongnu.org; Sat, 25 Jun 2011 12:28:12 -0400 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from ironport-out-1.rz.rwth-aachen.de ([134.130.5.40]) by mta-1.ms.rz.RWTH-Aachen.de (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008)) with ESMTP id <0LNC00CTCTQYG0F0@mta-1.ms.rz.RWTH-Aachen.de> for qemu-devel@nongnu.org; Sat, 25 Jun 2011 18:28:10 +0200 (CEST) Received: from [172.23.23.148] ([unknown] [87.79.236.180]) by relay-auth-1.ms.rz.rwth-aachen.de (Sun Java(tm) System Messaging Server 7.0-3.01 64bit (built Dec 9 2008)) with ESMTPA id <0LNC002FHTQWPC00@relay-auth-1.ms.rz.rwth-aachen.de> for qemu-devel@nongnu.org; Sat, 25 Jun 2011 18:28:10 +0200 (CEST) Message-id: <4E060C98.30706@rwth-aachen.de> Date: Sat, 25 Jun 2011 18:28:08 +0200 From: "felix.matenaar@rwth-aachen" References: <4E054935.4060406@rwth-aachen.de> In-reply-to: Subject: Re: [Qemu-devel] QEMU timing requirements List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 06/25/2011 06:26 AM, Mulyadi Santosa wrote: > On Sat, Jun 25, 2011 at 09:34, felix.matenaar@rwth-aachen > wrote: >> Hello, >> >> I am currently implementing some heuristics using a patched qemu >> (i386-softmmu). Two of them take some time for each vm memory access. If I >> run them both, suddenly qemu segfaults while executing a BBL. Using just one >> of them never triggers this problem. > "Two" instances of Qemu running at the same time, you mean? > No. What I do is using gen_helper_ to compile hooks into call/ret/jmp and memory access. The Heuristics can then hook the events so calculation is done during the execution of a basic block. I thought that it could be possible that Qemu sets a timeout for BBL execution to prevent CPU monopolization by e.g. a long sequence of rep. That would make sense because my heuristics calculation time falls into the BBL execution time for Qemu. Does anyone know more about that? Regards, Felix