From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JwM8N-0002V6-Mc for qemu-devel@nongnu.org; Wed, 14 May 2008 14:55:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JwM8M-0002UV-0F for qemu-devel@nongnu.org; Wed, 14 May 2008 14:55:27 -0400 Received: from [199.232.76.173] (port=49241 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwM8L-0002US-SY for qemu-devel@nongnu.org; Wed, 14 May 2008 14:55:25 -0400 Received: from aa012msr.fastwebnet.it ([85.18.95.72]:57350) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JwM8L-0000XK-Oj for qemu-devel@nongnu.org; Wed, 14 May 2008 14:55:26 -0400 Received: from [1.115.13.66] (1.115.13.66) by aa012msr.fastwebnet.it (8.0.013.5) id 4817103902123F50 for qemu-devel@nongnu.org; Wed, 14 May 2008 20:54:55 +0200 Message-ID: <482B3562.1000509@slacky.it> Date: Wed, 14 May 2008 20:54:26 +0200 From: Antonio Ricci MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] hooking interrupt Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi all, I'm new on this list. I need to to intercept system calls running in the virtual machine from the host system. To do it I think that it could be useful to check when the interrupt 0x80 is called and evaluate the value of the registers. Is it a correct way to proceed? In the case of Argos I want to do this operations modifying the file target-i386/translate.c in order to check the registers value. Do you know if this is a correct way? Someone suggested me to read the document explaining how to port qemu to new CPU, but I can't understand how to do hooking. Thank in advance for your help -- Antonio My Mobile Phone: +393286739562 My Public Key: http://tonyr.altervista.org/chiave_pubblica MSN: ricciantonio@hotmail.it Skype: tonyr81fg Linux Member #374272 ********************************************************************* What is the difference between Jurassic Park and Microsoft? One is an over-rated high tech theme park based on prehistoric information and populated mostly by dinosaurs, the other is a Steven Spielberg movie. ********************************************************************* There are only 10 types of people in this world: those who understand binary, and those who don't. *********************************************************************