High cpu usage when guest is idle on qemu-system-i386
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
When running Windows XP in qemu-system-i386, the cpu usage of QEMU is about 100% even when the guest CPU usage is close to 2%. The host cpu usage should be low when the guest cpu usage is low.
Command: qemu-system-i386 -hda <Windows XP HD image>
Using this command also shows around 100% host CPU usage:
qemu-system-i386 -m 700 -hda <Windows XP HD image> -usb -device usb-audio -net nic,model=rtl8139 -net user -hdb mountable.img -soundhw pcspk
Using the Penryn CPU option also saw this problem:
qemu-system-i386 -hda <Windows XP HD image> -m 700 -cpu Penryn-v1
Using "-cpu pentium2" saw the same high host cpu usage.
My Info:
M1 MacBook Air
Mac OS 11.1
qemu-system-i386 version 5.2 (1ba089f2255bfd
Windows XP SP3 Build 2600
Just to compare notes I ran my same Windows XP image on an older version of QEMU. This is version 2.10.1. It was built for the x86_64 architecture. The host CPU architecture is aarm64. The host CPU usage was actually very low when the guest CPU usage was low. The guest was using about 8% and the host usage was around 14%.