x86 emulation in UTM runs significantly more slowly than running `qemu-system-x86_64` binary directly
- Dominant language
- Swift
- Stars
- 35.5k
- Forks
- 1.8k
- Avg merge
- 5d 5h
- Merged PRs (30d)
- 7
Description
**BEFORE SUBMITTING YOUR ISSUE, PLEASE LOOK AT THE PINNED ISSUES AND USE THE SEARCH FUNCTION TO MAKE SURE IT IS NOT ALREADY REPORTED. ALWAYS COMMENT ON AN EXISTING ISSUE INSTEAD OF MAKING A NEW ONE.**
**Describe the issue**
I am noticing significant slowdowns when running a Windows XP VM in UTM vs. running it directly via `./qemu-system-x86_64 -accel tcg -hda /path/to/winxp.qcow2` on qemu from homebrew. This seems to occur regardless of whether I run UTM/QEMU on M1 or on Intel. Some numbers I am seeing:
Core i9 MacBook Pro, `qemu-system-x86_64`, `-accel tcg`: ~39s to the desktop
Core i9 MacBook Pro, UTM, `-accel tcg`: ~6.5 min to the desktop
Core i9 MacBook Pro, `qemu-system-x86_64`, `-accel hvf`: ~2 min to the desktop (why this is slower than TCG is a question for a different report)
Core i9 MacBook Pro, UTM, `-accel hvf`: ~8 minutes to the desktop
M1 Max MacBook Pro, `qemu-system-x86_64`, `-accel tcg`: ~21s to the desktop
M1 Max MacBook Pro, UTM, `-accel tcg`: ~1 min to the desktop
It is possible that this is caused by one of the settings that UTM sets. Unfortunately, it is hard for me to test this directly since many of the options exported by the "Export QEMU Command" button do not seem to be valid options on qemu from homebrew.
**Configuration**
* UTM Version: 4.2.5 stable and 4.3.1 beta (tested with both)
* macOS Version: Ventura 13.4.1 (c)
* Mac Chip (Intel, M1, ...): Core i9, M1 Max (tested with both)
click and choose `Reveal in Finder`. Attach the report here.
**Debug log**
Debug log appears empty when I export it.
**Upload VM**
[config.plist.zip](https://github.com/utmapp/UTM/files/12063102/config.plist.zip)
Contributor guide
Assessment
This issue has not been assessed yet.