Skip to contentSkip to conversation

qemu high cpu load when -monitor stdio and fifo is used

Qemu-devel sebastiano lomuscio 1 participant 1 message Oct 22, 2005

lore
Share & tools
lore
#0 lore raw

Please help me.!

I'm trying to send command to the qemu monitor via a FIFO device in order to stop,start and save the vm state in a file from another process .
The script I'm using is the following:

#!/bin/bash
mkfifo /tmp/serin

        qemu  -boot c -cdrom win2000.iso -hda win2000s.img -m 256

-localtime -snapshot -nographic -serial null -monitor stdio -n ./qemu-ifup < /tmp/serin &
exit

When this script is started the emulator doesn't start. I have to send the following command via /tmp/serin

echo "start " > /tmp/serin

After that, the emulator runs fine but the cpu load is very high (near
99%) also if i send the "stop" command : echo "stop" > /tmp/serin
the emulation get stopped but the cpu load remain high.
The emulated system is windows 2000 server

Any help is really appreciated

Sebastiano