From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:47066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNiDx-0004F2-Cx for qemu-devel@nongnu.org; Tue, 08 Nov 2011 04:44:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNiDt-0007UW-CF for qemu-devel@nongnu.org; Tue, 08 Nov 2011 04:44:09 -0500 Received: from cantor2.suse.de ([195.135.220.15]:44389 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNiDt-0007UP-3z for qemu-devel@nongnu.org; Tue, 08 Nov 2011 04:44:05 -0500 Message-ID: <4EB8F9DC.2090708@suse.de> Date: Tue, 08 Nov 2011 10:43:56 +0100 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <20111108052747.GA49456@cs.nctu.edu.tw> In-Reply-To: <20111108052747.GA49456@cs.nctu.edu.tw> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Accessing a linux guest's data structures List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?6Zmz6Z+L5Lu7?= Cc: Ankur Dahiya , Mulyadi Santosa , qemu-devel@nongnu.org Am 08.11.2011 06:27, schrieb =E9=99=B3=E9=9F=8B=E4=BB=BB: >>> I am running a linux guest inside qemu and I need to determine what p= rocess, >>> thread is currently running in the guest. >>> How should I do this? Any suggestions? Or can anyone point me to the >>> relevant areas in qemu's source. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > I guess he want to know how to know which process is running in the > guest OS from QEMU's perspective. And QEMU doesn't know or care, as a processor emulator. Therefore in some way the guest's cooperation is needed. HTE, Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg