Reputation: 324
in Linux x86_64 host machine, can simply run qemu with KVM enable by this command
qemu-system-x86_64 \
-enable-kvm \
-cpu max \
-smp cores=4,threads=1 \
-m 4096 \
-nographic \
-hda hd.raw \
-hdb cloud.img \
-device virtio-net-pci,netdev=n1 \
-netdev user,id=n1,hostfwd=tcp::2222-:22
In the guest machine, the performance gets almost native host performance.
Now I want to run an Arm guest machine in an Arm Host (ex: raspberry pi) and it does not allow me to enable kvm, How can I get near-native performance in an Arm guest machine (Arm host linux)
Upvotes: 1
Views: 5491
Reputation: 11533
The basic principle is the same as for x86, but there are some restrictions:
You also of course need to have a QEMU command line that works in the first place, i.e. passing QEMU a guest kernel that has support for the machine type and devices being emulated, a suitable filesystem, whatever devices you need, etc -- all the things you need for any kind of QEMU run, whether pure emulated or accelerated.
Upvotes: 5