From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HNgpf-00035s-Rm for qemu-devel@nongnu.org; Sat, 03 Mar 2007 21:52:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HNgpe-00035g-BE for qemu-devel@nongnu.org; Sat, 03 Mar 2007 21:52:19 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HNgpe-00035d-36 for qemu-devel@nongnu.org; Sat, 03 Mar 2007 21:52:18 -0500 Received: from wr-out-0506.google.com ([64.233.184.234]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HNgpc-0000BP-Rd for qemu-devel@nongnu.org; Sat, 03 Mar 2007 21:52:17 -0500 Received: by wr-out-0506.google.com with SMTP id 67so1251905wri for ; Sat, 03 Mar 2007 18:52:16 -0800 (PST) Message-ID: <4f2c8b9a0703031852u62309c60s552804f1c9e131d9@mail.gmail.com> Date: Sat, 3 Mar 2007 18:52:15 -0800 From: "Shane Brennan" Sender: loopuniverse@gmail.com MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_107305_511594.1172976735257" Subject: [Qemu-devel] Problem Running QEMU, and passing new commands 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 ------=_Part_107305_511594.1172976735257 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I have successfully integrated the statistical simulation package SimPoint with QEMU. Now I wish to add some commands to QEMU so a user can start or stop simulation. The goal is that at the QEMU command prompt, the user could enter a command like start_simpoint or stop_simpoint. For example: (qemu) start_simpoint SimPoint started! (qemu) .... /*Time passes.. */ (qemu) stop_simpoint SimPoint stopped! I am curious where I would edit QEMU to look for such commands, some point in the code where I can see what command is passed to QEMU, and do something such as "if strcmp(command, "start_simpoint") == 0" Also, there is another problem, I am able to run QEMU if I tell it to load and boot a linux image. But I am not able to simply boot up to the (qemu) prompt and enter commands from there. I try running QEMU using the following commands: qemu-img create -f qcow c.img 3G ./i386-softmmu/qemu -hda c.img -L ./pc-bios/ -nographic and it loads up to the (qemu) prompt. However, at that point everything freezes. I am running QEMU on a linux host with a dual 64-bit AMD processors, and doing this over an SSH connection. If anyone has any advice on how I can get QEMU to boot to the point where I can enter commands, and how I can monitor these commands within the source code, I would very much appreciate the assistance. ~Shane Brennan UC Santa Cruz ------=_Part_107305_511594.1172976735257 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,
    I have successfully integrated the statistical simulation package SimPoint with QEMU. Now I wish to add some commands to QEMU so a user can start or stop simulation. The goal is that at the QEMU command prompt, the user could enter a command like start_simpoint or stop_simpoint. For example:

(qemu) start_simpoint
SimPoint started!
(qemu)
.... /*Time passes.. */
(qemu) stop_simpoint
SimPoint stopped!

I am curious where I would edit QEMU to look for such commands, some point in the code where I can see what command is passed to QEMU, and do something such as
"if strcmp(command, "start_simpoint") == 0"

Also, there is another problem, I am able to run QEMU if I tell it to load and boot a linux image. But I am not able to simply boot up to the (qemu) prompt and enter commands from there. I try running QEMU using the following commands:
qemu-img create -f qcow c.img 3G
./i386-softmmu/qemu -hda c.img -L ./pc-bios/ -nographic

and it loads up to the (qemu) prompt. However, at that point everything freezes. I am running QEMU on a linux host with a dual 64-bit AMD processors, and doing this over an SSH connection.

If anyone has any advice on how I can get QEMU to boot to the point where I can enter commands, and how I can monitor these commands within the source code, I would very much appreciate the assistance.

~Shane Brennan
UC Santa Cruz
------=_Part_107305_511594.1172976735257--