From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HNnb2-0001zD-Mt for qemu-devel@nongnu.org; Sun, 04 Mar 2007 05:05:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HNnb1-0001z0-6t for qemu-devel@nongnu.org; Sun, 04 Mar 2007 05:05:40 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HNnb0-0001yx-UW for qemu-devel@nongnu.org; Sun, 04 Mar 2007 05:05:39 -0500 Received: from warsl404pip3.highway.telekom.at ([195.3.96.115] helo=email.aon.at) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HNnb0-0000Oh-Ap for qemu-devel@nongnu.org; Sun, 04 Mar 2007 05:05:38 -0500 Received: from m721p015.adsl.highway.telekom.at (HELO [192.168.1.4]) ([62.47.250.15]) (envelope-sender ) by smarthub84.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 4 Mar 2007 10:05:36 -0000 Subject: Re: [Qemu-devel] Problem Running QEMU, and passing new commands From: maestro In-Reply-To: <4f2c8b9a0703031852u62309c60s552804f1c9e131d9@mail.gmail.com> References: <4f2c8b9a0703031852u62309c60s552804f1c9e131d9@mail.gmail.com> Content-Type: text/plain Date: Sun, 04 Mar 2007 11:05:35 +0100 Message-Id: <1173002735.5492.7.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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, > I have successfully integrated the statistical simulation package > SimPoint with QEMU. > 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" take a look a the monitor.c file in the root directory. "register" your function with the static term_cmd_t term_cmds[] and take a look at the other commands for an example. > qemu-img create -f qcow c.img 3G > ./i386-softmmu/qemu -hda c.img -L ./pc-bios/ -nographic with this you just create an empty disk and try to boot it. - i guess this is similar to trying to boot an empty disk in a real system. the -nographic switch prevents you from seeing the "unknown boot device" error that is presented to you by the bios. so do as with real hardware and install an operating system on that c.img you just created (i'm fairly sure that is mentioned in the good documentation provided on the qemu homepage ;-)) > 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. you might try the -vnc option, you can then don't need -nographic nomore and can check the system via any common vncclient. > > 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. i hope the above mentioned helped at least in parts and is not completely wrong. if others think so please corret me. > ~Shane Brennan > UC Santa Cruz cheers m.