From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Haf9I-0001A9-W9 for qemu-devel@nongnu.org; Sun, 08 Apr 2007 17:42:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Haf9H-00019x-9c for qemu-devel@nongnu.org; Sun, 08 Apr 2007 17:42:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Haf9H-00019u-6L for qemu-devel@nongnu.org; Sun, 08 Apr 2007 17:42:11 -0400 Received: from agogare.doit.wisc.edu ([144.92.197.211]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1Haf5W-0004Ec-6a for qemu-devel@nongnu.org; Sun, 08 Apr 2007 17:38:18 -0400 Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JG70020183Q0Y00@smtpauth2.wiscmail.wisc.edu> for qemu-devel@nongnu.org; Sun, 08 Apr 2007 16:38:14 -0500 (CDT) Received: from [146.151.107.38] (eh-104-107-38.resnet.wisc.edu [146.151.107.38]) by smtpauth2.wiscmail.wisc.edu (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JG7000UC83PQZ00@smtpauth2.wiscmail.wisc.edu> for qemu-devel@nongnu.org; Sun, 08 Apr 2007 16:38:13 -0500 (CDT) Date: Sun, 08 Apr 2007 16:38:14 -0500 From: eady Message-id: <461960C6.8010904@wisc.edu> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT Subject: [Qemu-devel] Saving and restoring CPU state 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 I'm experimenting a bit with QEMU and am in need of a way to save and restore X86 CPU state including the pc so that the processor state can be rolled back to re execute from the previous point. I've found the functions "cpu_x86_fsave" and "cpu_restore_state" but do not understand them well enough to use them. Does anyone have tips on how to store the processor state in an auxiliary data structure and then restore it at a later point? Thanks Nuri