QEMU

{{short description|Free virtualization and emulation software}}

{{about|the virtual machine monitor|the Quarterdeck expanded memory manager|QEMM}}

{{Technical|date=December 2024|talk=Technical label}}

{{Infobox software

| logo = 200px

| screenshot = QEMU 6.2 screenshot.png

| caption = The free operating system OpenIndiana running within QEMU, which runs as a process on Linux

| developer = QEMU team:
Peter Maydell, et al.

| author = Fabrice Bellard

| latest release version = {{wikidata|property|preferred|references|edit|Q624699|P348|P548=Q2804309}}

| latest release date = {{wikidata|qualifier|preferred|single|Q624699|P348|P548=Q2804309|P577}}

| latest preview version = {{wikidata|property|preferred|references|edit|Q624699|P348|P548=Q51930650}}

| latest preview date = {{wikidata|qualifier|preferred|single|Q624699|P348|P548=Q51930650|P577}}

| operating system = Linux, Microsoft Windows, macOS and some other UNIX platforms

| programming language = C

| genre = Hypervisor, Emulator

| license = GPL-2.0-only{{cite web|url=https://wiki.qemu.org/License|title=License - QEMU}}

}}

The Quick Emulator (QEMU){{cite web |title=Glossary |url=https://csrc.nist.gov/glossary/term/qemu |access-date=2023-04-24 |website=National Institute of Standards and Technology}} is a free and open-source emulator that uses dynamic binary translation to emulate a computer's processor; that is, it translates the emulated binary codes to an equivalent binary format which is executed by the machine. It provides a variety of hardware and device models for the virtual machine, enabling it to run different guest operating systems. QEMU can be used with a Kernel-based Virtual Machine (KVM) to emulate hardware at near-native speeds. Additionally, it supports user-level processes, allowing applications compiled for one processor architecture to run on another.{{cite web |last=Speed |first=Richard |date=2019-04-25 |title=QEMU 4 arrives with toys for Arm admirers, RISC-V revolutionaries, POWER patriots... you get the idea |url=https://www.theregister.co.uk/2019/04/25/qemu_4/ |url-status=live |archive-url=https://archive.today/20191001070134/https://www.theregister.co.uk/2019/04/25/qemu_4/ |archive-date=2019-10-01 |access-date=2019-10-01 |website=www.theregister.co.uk |publisher=The Register |language=en}}

QEMU supports the emulation of x86, ARM, PowerPC, RISC-V, and other architectures.

Licensing

QEMU is free software developed by Fabrice Bellard. Different components of QEMU are licensed under the GNU General Public License (GPL), BSD license, GNU Lesser General Public License (LGPL), or other GPL-compatible licenses.{{cite web |title=License - QEMU |url=http://wiki.qemu.org/License |website=wiki.qemu.org}}

Operating modes

QEMU has multiple operating modes:{{cite web |title=About QEMU |url=https://qemu.readthedocs.io/en/master/about/index.html |website=qemu.readthedocs.io}}

  • User-mode emulation. In the user emulation mode, QEMU runs single Linux or Darwin/macOS programs that were compiled for a different instruction set. System calls are thunked for endianness and for 32/64-bit mismatches. Fast cross-compilation and cross-debugging are the main targets for user-mode emulation.
  • System emulation. In the system emulation mode, QEMU emulates a full computer system, including peripherals. It can be used to provide virtual hosting of several virtual computers on a single computer. QEMU can boot many guest operating systems, including Linux, Solaris, Microsoft Windows, DOS, and BSD;{{cite web |title=QEMU OS Support List |url=http://www.claunia.com/qemu/ |archive-url=https://web.archive.org/web/20140513145837/http://www.claunia.com/qemu/ |archive-date=2014-05-13 |access-date=2024-03-21 |website=www.claunia.com |postscript=. Frequent changes recorded in archive in years before going offline.}} it supports emulating several instruction sets, including x86, x86-64, MIPS, ARMv7, ARMv8, PowerPC, RISC-V, SPARC, ETRAX CRIS and MicroBlaze.
  • Hypervisor support. In the hypervisor support mode, QEMU either acts as a Virtual Machine Manager (VMM) or as a device emulation back-end for virtual machines running under a hypervisor. The most common is Linux's KVM but the project supports a number of hypervisors including Xen, Apple's HVF, Windows' WHPX, and NetBSD's NVMM.{{cite web |title=Supported host architectures |url=https://qemu.readthedocs.io/en/v8.1.0/about/build-platforms.html#supported-host-architectures}}

Features

QEMU supports the emulation of various architectures, including x86, MIPS64 (up to Release 6),{{cite web |title=QEMU PRIP 1 - support for MIPS64 Release 6 - PRPL |url=http://wiki.prplfoundation.org/wiki/QEMU_PRIP_1_-_support_for_MIPS64_Release_6 |url-status=dead |archive-url=https://web.archive.org/web/20170421171437/http://wiki.prplfoundation.org/wiki/QEMU_PRIP_1_-_support_for_MIPS64_Release_6 |archive-date=2017-04-21 |access-date=2014-12-22 |website=wiki.prplfoundation.org}} SPARC (sun4m and sun4u), ARM (Integrator/CP and Versatile/PB), SuperH, PowerPC (PReP and Power Macintosh), ETRAX CRIS, MicroBlaze, and RISC-V. It supports saving the virtual machine state while all programs are running. Guest operating systems do not need patching to run inside QEMU.

The virtual machine can interface with many types of physical host hardware, including the user's hard disks, CD-ROM drives, network cards, audio interfaces, and USB devices. USB devices can be emulated entirely, or the host's USB devices can be used, although this requires administrator privileges and does not work with some devices.

Virtual disk images can be stored in QCOW format, which can significantly reduce image size. QCOW images only occupy the actual used disk space, not the full configured capacity. This means a configured 120 GB disk may only occupy a few hundred megabytes on the host, as QCOW does not store unused disk space in the image file.

The QCOW2 format also allows the creation of overlay images, which are files that store only the changes made from an original (unmodified) base image file. This enables the emulated disk's contents to be reverted to an earlier state. For instance, a base image could contain a fresh installation of a known working operating system, and overlay images can be used to record changes. Should the guest system become unusable (through virus attack, accidental system destruction, etc.), the user can delete the overlay and use an earlier emulated disk image.

QEMU can emulate network cards (of different models) that share the host system's connectivity by translating network addresses, effectively allowing the guest to use the same network as the host. The virtual network cards can also connect to network cards of other instances of QEMU or to local TAP interfaces. Network connectivity can also be achieved by bridging a TUN/TAP interface used by QEMU with a non-virtual Ethernet interface on the host OS using the host OS's bridging features.

QEMU integrates several services to allow the host and guest systems to communicate for example: an integrated SMB server and network-port redirection (to allow incoming connections to the virtual machine). It can also boot Linux kernels without a bootloader.

QEMU does not depend on the presence of graphical output methods on the host system. Instead, it provides access to the guest OS screen via an integrated VNC server. It can also use an emulated serial line without any screen, with applicable operating systems.

Simulating multiple CPUs running SMP is possible.

QEMU does not require administrative rights to run unless additional kernel modules are used to improve speed (like KQEMU) or certain modes of its network connectivity model are utilized.

=Tiny Code Generator=

The Tiny Code Generator (TCG) aims to remove the shortcoming of relying on a particular version of GCC or any compiler, instead incorporating the compiler into other tasks performed by QEMU at run time. The whole translation task thus consists of two parts: basic blocks of target code (TBs) being rewritten in TCG ops – a kind of machine-independent intermediate notation, and subsequently this notation being compiled for the host's architecture by TCG. Optional optimization passes are performed between them, for a just-in-time compiler (JIT) mode.

TCG requires dedicated code written to support every architecture it runs on, so that the JIT knows what to translate the TCG ops to. If no dedicated JIT code is available for the architecture, TCG falls back to a slow interpreter mode called TCG Interpreter (TCI). It also requires updating the target code to use TCG ops instead of the old DynGen ops.{{Clarify|reason=This appears to be a unique usage of the jargon "dyngen", researching this term, it appears to be more commonly used in the cellular simulation space.|date=December 2024}}

Starting with QEMU Version 0.10.0, TCG ships with the QEMU stable release. It replaces DynGen, which relied on GCC 3.x to work.{{cite web |title=[Qemu-devel] ANNOUNCE: Release 0.10.0 of QEMU |url=http://lists.gnu.org/archive/html/qemu-devel/2009-03/msg00154.html |website=lists.gnu.org}}{{cite web |last1=Filardo |first1=Nathaniel |date=September 11, 2007 |title=Porting QEMU to Plan 9: QEMU Internals and Port Strategy |url=http://gsoc.cat-v.org/people/nwf/paper-strategy-plus.pdf |website=gsoc.cat-v.org}} -- a review of how the old dyngen worked

=Accelerator=

KQEMU was a Linux kernel module, also written by Fabrice Bellard, which notably sped up emulation of x86 or x86-64 guests on platforms with the same CPU architecture. This worked by running user mode code (and optionally some kernel code) directly on the host computer's CPU, and by using processor and peripheral emulation only for kernel-mode and real-mode code. KQEMU could execute code from many guest operating systems even if the host CPU did not support hardware-assisted virtualization. KQEMU was initially a closed-source product available free of charge but starting from version 1.3.0pre10 (February 2007),{{cite web |url=https://lwn.net/Articles/220807/ |title=KQEMU 1.3.0pre10 released - under the GPL [LWN.net] |publisher=Lwn.net |date=February 6, 2007 |access-date=2009-01-03}} it was relicensed under the GNU General Public License. QEMU versions starting with 0.12.0 ({{as of|2009|08|lc=on}}) support large memory which makes them incompatible with KQEMU.{{cite web |first=Anthony |last=Liguori |url=http://lists.gnu.org/archive/html/qemu-devel/2009-08/msg00478.html |title=[Qemu-devel] [PATCH 1/2] Unbreak large mem support by removing kqemu |date=10 August 2009 |access-date=2010-03-11}} Newer releases of QEMU have completely removed support for KQEMU.

QVM86 was a GNU GPLv2 licensed drop-in replacement for the then closed-source KQEMU. The developers of QVM86 ceased development in January 2007.

Kernel-based Virtual Machine (KVM) has mostly taken over as the Linux-based hardware-assisted virtualization solution for use with QEMU following the lack of support for KQEMU and QVM86.{{citation needed|date=May 2014}} QEMU can also use KVM on other architectures like ARM and MIPS.{{cite web |title=QEMU / KVM CPU model configuration |url=https://www.qemu.org/docs/master/system/qemu-cpu-models.html |website=QEMU 5.0.50 (v5.0.0-962-g49ee115552) documentation}}

Intel's Hardware Accelerated Execution Manager (HAXM) is an open-source alternative{{cite web | url = https://lists.nongnu.org/archive/html/qemu-devel/2017-11/msg02504.html | title = HAXM goes open source | date = 2017-11-17 | publisher = QEMU developers | access-date = 2017-01-14 | quote = HAXM is now open source}} to KVM for x86-based hardware-assisted virtualization on NetBSD, Linux, Windows and macOS using Intel VT. {{As of | 2013}} Intel mostly solicits its use with QEMU for Android development.{{cite web | url = https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager | title = Intel Hardware Accelerated Execution Manager | date = 2013-11-27 | publisher = Intel | access-date = 2014-05-12 | quote = The Intel Hardware Accelerated Execution Manager (Intel® HAXM) is a hardware-assisted virtualization engine (hypervisor) that uses Intel Virtualization Technology (Intel® VT) to speed up Android app emulation on a host machine.}} Starting with version 2.9.0, the official QEMU includes support for HAXM, under the name Hax.{{cite web |title=Invocation |url=https://www.qemu.org/docs/master/system/invocation.html |website=QEMU 5.0.50 (v5.0.0-962-g49ee115552) documentation}}

QEMU also supports the following accelerators:

  • hvf, Apple's {{Code|Hypervisor.framework}} based on Intel VT.
  • whpx, Microsoft's Windows Hypervisor Platform based on Intel VT or AMD-V.
  • tcg, QEMU's own Tiny Code Generator. This is the default.

=Supported disk image formats=

QEMU supports the following disk image formats:{{cite web |title=QEMU Emulator User Documentation |url=https://qemu.weilnetz.de/doc/qemu-doc.html#disk_005fimages |url-status=dead |archive-url=https://web.archive.org/web/20190427013412/https://qemu.weilnetz.de/doc/qemu-doc.html#disk_005fimages |archive-date=2019-04-27 |access-date=2018-04-10 |website=qemu.weilnetz.de}}

= QEMU Object Model =

The QEMU Object Model (QOM) provides a framework for registering types that users can make and instantiating objects from those types.{{Cite web |date=26 October 2021 |title=Qemu Readme |url=https://github.com/qemu/qemu/blob/master/docs/devel/qom.rst |website=GitHub}}

QOM provides the following features:

  • System for dynamically registering types
  • Support for single-inheritance of types
  • Multiple inheritances of stateless interfaces

{{See also|Object model}}

Parallel emulation

Virtualization solutions that use QEMU can execute multiple virtual CPUs in parallel. For user-mode emulation, QEMU maps emulated threads to host threads. QEMU can run a host thread for each emulated virtual CPU (vCPU) for full system emulation. This depends on the guest being updated to support parallel system emulation, currently ARM, Alpha, HP-PA, PowerPC, RISC-V, s390x, x86, and Xtensa. Otherwise, a single thread is used to emulate all virtual CPUs (vCPUs), which executes each vCPU in a round-robin manner.

Integration

=VirtualBox=

VirtualBox, first released in January 2007, used some of QEMU's virtual hardware devices, and had a built-in dynamic re-compiler based on QEMU. As with KQEMU, VirtualBox runs nearly all guest code natively on the host via the VMM (Virtual Machine Manager) and uses the re-compiler only as a fallback mechanism – for example, when guest code executes in real mode.{{cite web |title=VirtualBox Developer FAQ |url=http://virtualbox.org/wiki/Developer_FAQ |access-date=2015-02-02}} In addition, VirtualBox did a lot of code analysis and patching using a built-in disassembler to minimize recompilation. VirtualBox is free and open-source (available under GPL), except for certain features.

=Xen-HVM=

Xen, a virtual machine monitor, can run in HVM (hardware virtual machine) mode, using Intel VT-x or AMD-V hardware x86 virtualization extensions and ARM Cortex-A7 and Cortex-A15 virtualization extensions.{{cite web |title=Xen ARM with Virtualization Extensions |url=http://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions}} This means that instead of para-virtualized devices, a real set of virtual hardware is exposed to the DomU, enabling it to use real device drivers.

QEMU includes several components: CPU emulators, emulated devices, generic devices, machine descriptions, user interface, and a debugger. The emulated devices and generic devices in QEMU make up its device models for I/O virtualization.{{cite web |title=Oracle and Sun Microsystems - Strategic Acquisitions - Oracle |url=http://www.sun.com/blueprints/1107/820-3703.pdf |website=www.sun.com}} They comprise a PIIX3 IDE (with some rudimentary PIIX4 capabilities), Cirrus Logic or plain VGA emulated video, RTL8139 or E1000 network emulation, and ACPI support.[http://ian.blenke.com/xen/hvm/svm/vtx/qemu Demystifying Xen HVM] {{webarchive|url=https://web.archive.org/web/20071222101854/http://ian.blenke.com/xen/hvm/svm/vtx/qemu|date=December 22, 2007}} APIC support is provided by Xen.

Xen-HVM utilizes device emulation based on the QEMU project to deliver I/O virtualization to virtual machines (VMs). Hardware is emulated through a QEMU "device model" daemon running as a backend in Dom0. Unlike other QEMU modes, such as dynamic translation or KVM, the hypervisor fully manages virtual CPUs, pausing them as necessary while QEMU handles memory-mapped I/O emulation.

=KVM=

KVM (Kernel-based Virtual Machine) is a FreeBSD and Linux kernel module that allows a user space program access to the hardware virtualization features of various processors, with which QEMU can offer virtualization for x86, PowerPC, and S/390 guests. When the target architecture is the same as the host architecture, QEMU can make use of KVM particular features, such as acceleration.

=Win4Lin Pro Desktop=

In early 2005, Win4Lin introduced Win4Lin Pro Desktop, based on a 'tuned' version of QEMU and KQEMU and it hosts NT-versions of Windows. In June 2006,[http://weblog.infoworld.com/virtualization/archives/2006/06/win4lin_announc.html win4lin VDS announcement] {{webarchive|url=https://web.archive.org/web/20080210042356/http://weblog.infoworld.com/virtualization/archives/2006/06/win4lin_announc.html|date=February 10, 2008}} Win4Lin released Win4Lin Virtual Desktop Server based on the same code base. Win4Lin Virtual Desktop Server serves Microsoft Windows sessions to thin clients from a Linux server.

In September 2006, Win4Lin announced a change of the company name to [https://web.archive.org/web/20110613051010/http://www.vbridges.com/home.php Virtual Bridges] with the release of Win4BSD Pro Desktop, a port of the product to FreeBSD and PC-BSD. Solaris support followed in May 2007 with the release of Win4Solaris Pro Desktop and Win4Solaris Virtual Desktop Server.[http://win4solaris.com/jml/index.php?option=com_content&task=view&id=17&Itemid=1 Win4Solaris announcement] {{webarchive|url=https://web.archive.org/web/20071223221725/http://win4solaris.com/jml/index.php?option=com_content&task=view&id=17&Itemid=1|date=December 23, 2007}}

=SerialICE=

SerialICE is a QEMU-based firmware debugging tool running system firmware inside of QEMU while accessing real hardware through a serial connection to a host system. This can be used as a cheap replacement for hardware in-circuit emulators (ICE).{{Cite web |title=SerialICE |url=http://serialice.com/ |website=serialice.com}}

=WinUAE=

WinUAE introduced support for the CyberStorm PPC and Blizzard 603e boards using the QEMU PPC core in version 3.0.0.{{cite web |date=2014-12-17 |title=WinUAE 3.0.0 |url=http://eab.abime.net/showpost.php?p=992271&postcount=1 |access-date=2016-03-25 |publisher=English Amiga Board}}

=Unicorn=

Unicorn is a CPU emulation framework based on QEMU's "TCG" CPU emulator. Unlike QEMU, Unicorn focuses on the CPU only: no emulation of any peripherals is provided and raw binary code (outside of the context of an executable file or a system image) can be run directly. Unicorn is thread-safe and has multiple bindings and instrumentation interfaces.{{cite web |title=Unicorn & QEMU |url=https://www.unicorn-engine.org/docs/beyond_qemu.html |website=Unicorn Engine}}

= Limbo x86 PC Emulator =

Limbo is an x86 and ARM64 QEMU-based virtual machine for Android.{{Cite web |title=Limbo Emulator Tutorials |url=https://virtualmachinery.weebly.com/tutorials.html |access-date=2023-09-02 |website=Virtual Machinery |language=en}} It is one of the few pieces of virtual machine software available for Android capable of emulating Microsoft Windows,{{Citation |title=How to Install Windows on any Android Device Full Installation [No Root] ( Using Limbo PC Emulator ) |url=https://www.youtube.com/watch?v=D6Vz3plWktQ |access-date=2023-09-02 |language=en}} although it was designed to emulate Linux and DOS. Unlike other QEMU-based emulators, it does not require users to type commands to use, instead having a user interface to set the virtual machine's settings.

It is more popular in developing countries in Asia such as India, Malaysia, and Thailand on YouTube due to the high usage of the Android Operating System.{{Cite web |title=India: mobile OS share 2022 |url=https://www.statista.com/statistics/262157/market-share-held-by-mobile-operating-systems-in-india/ |access-date=2023-09-02 |website=Statista |language=en}} Limbo was removed from the Google Play Store for unknown reasons between February 2019 and December 2020, though it can still be installed off the developer's website with an APK (Android Package) installation.{{Cite web |title=Limbo Downloads |url=https://virtualmachinery.weebly.com/limbo-downloads.html |access-date=2023-09-02 |website=Virtual Machinery |language=en}} Limbo tends to have issues regarding its audio quality and playback. No fixes have been found for these problems as of 2024.{{Cite web |title=Downloads |url=https://github.com/limboemu/limbo/wiki/Downloads |access-date=2023-09-02 |website=GitHub |language=en}} Overall, Limbo is less well-known than other virtual machine software, which leads to less available information regarding its troubleshooting.

It is required to install an application known as "Hacker's Keyboard" to use many keyboard functions that a basic Android keyboard cannot do in Limbo x86, such as the Ctrl, Alt, Del, and function keys.{{Citation |last=Weidner |first=Klaus |title=klausw/hackerskeyboard |date=2023-09-01 |url=https://github.com/klausw/hackerskeyboard |access-date=2023-09-02}} It is recommended to install Hacker's Keyboard with an APK file, as the Google Play version says it doesn't work with newer versions of Android.{{Cite web |title=Hacker's Keyboard - Apps on Google Play |url=https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard&hl=en_US |access-date=2023-09-02 |website=play.google.com |language=en-US}}{{Verify source|date=October 2024|reason=Could not find about APK files on the store page, is it collapsed somewhere?}}

Emulated hardware platforms

=x86=

QEMU can emulate the i386 and x86_64 architectures. Besides the central processing unit (CPU) (which is also configurable and can emulate a number of Intel CPU models including as of 3 March 2018 Sandy Bridge,{{cite web |title=[Qemu-devel] [PATCH 3/3] add SandyBridge CPU model |url=http://lists.gnu.org/archive/html/qemu-devel/2012-02/msg03765.html |website=lists.gnu.org}} Ivy Bridge,{{cite web |title=Qemu-Changelog-2.3 x86 |url=https://wiki.qemu.org/ChangeLog/2.3#x86 |website=wiki.qemu.org}} Haswell,{{cite web |title=QEMU-changelog-2.6, x86 KVM |url=https://wiki.qemu.org/ChangeLog/2.6#KVM_2 |website=wiki.qemu.org}} Broadwell{{cite web |title=QEMU-changelog-2.1, x86 KVM |url=https://wiki.qemu.org/ChangeLog/2.1#x86 |website=wiki.qemu.org}}{{cite web |title=QEMU-changelog-2.5, x86 CPU Models and Features |url=https://wiki.qemu.org/ChangeLog/2.5#CPU_models_and_features |website=wiki.qemu.org}} and Skylake), the following devices are emulated:

  • CD/DVD-ROM drive using an ISO image
  • Floppy disk drive
  • ATA controller or Serial ATA AHCI controller
  • Graphics card: Cirrus CLGD 5446 PCI VGA-card, Standard-VGA graphics card with Bochs-VBE, Red Hat QXL VGA
  • Network card: Realtek 8139C+ PCI, NE2000 PCI, NE2000 ISA, PCnet, E1000 (PCI Intel Gigabit Ethernet) and E1000E (PCIe Intel Gigabit Ethernet)https://qemu.weilnetz.de/doc/qemu-doc.html#pcsys_005fnetwork {{Webarchive|url=https://web.archive.org/web/20190427013412/https://qemu.weilnetz.de/doc/qemu-doc.html#pcsys_005fnetwork|date=2019-04-27}} "i82551, i82557b, i82559er, ne2k_pci, ne2k_isa, pcnet, rtl8139, e1000, smc91c111, lance and mcf_fec"http://pclosmag.com/html/issues/201208/page11.html Networking on QEMU: Setting Up The E1000 & Novell NE2000 ISA Evaluation
  • NVMe disk interface
  • Serial port
  • Parallel port
  • PC speaker
  • i440FX/PIIX3 or Q35/ICH9 chipsets
  • PS/2 mouse and keyboard
  • SCSI controller: LSI MegaRAID SAS 1078, LSI53C895A, NCR53C9x as found in the AMD PCscsi and Tekram DC-390 controllers
  • Sound card: Sound Blaster 16, AudioPCI ES1370, ICH AC'97, Gravis Ultrasound, and Intel HD Audio{{cite web |title=ChangeLog/0.14 |url=http://wiki.qemu.org/ChangeLog/0.14#Sound |access-date=2011-08-08}}
  • Watchdog timer (Intel 6300 ESB PCI, or iB700 ISA)
  • USB 1.x/2.x/3.x controllers (UHCI, EHCI, xHCI)
  • USB devices: Audio, Bluetooth dongle, HID (keyboard/mouse/tablet), MTP, serial interface, CAC smartcard reader, storage (bulk-only transfer and USB Attached SCSI), Wacom tablet
  • Paravirtualized VirtIO devices: block device, network card, SCSI controller, video device, serial interface, balloon driver, 9pfs filesystem driver
  • Paravirtualized Xen devices: block device, network card, console, framebuffer and input device

The BIOS implementation used by QEMU starting from version 0.12 is SeaBIOS. The VGA BIOS implementation of SeaBIOS is also used starting from version 2.0.0. The UEFI firmware for QEMU is OVMF.{{Cite web |title=UEFI/OVMF - Ubuntu Wiki |url=https://wiki.ubuntu.com/UEFI/OVMF}}

=PowerPC=

==PowerMac==

QEMU emulates the following PowerMac peripherals:

  • UniNorth PCI bridge
  • PCI-VGA-compatible graphics card which maps the VESA Bochs Extensions
  • Two PMAC-IDE-Interfaces with hard disk and CD-ROM support.
  • NE2000 PCI adapter
  • Non-volatile RAM
  • VIA-CUDA with ADB keyboard and mouse.

OpenBIOS is used as the firmware.

==PREP==

QEMU emulates the following PREP peripherals:

  • PCI bridge
  • PCI VGA-compatible graphics card with VESA Bochs Extensions
  • Two IDE interfaces with hard disk and CD-ROM support
  • Floppy disk drive
  • NE2000 network adapter
  • Serial interface
  • PREP non-volatile RAM
  • PC-compatible keyboard and mouse

On the PREP target, Open Hack'Ware, an Open-Firmware-compatible BIOS, is used.

==IBM System p==

QEMU can emulate the paravirtual sPAPR interface with the following peripherals:

  • PCI bridge, for access to VirtIO devices, VGA-compatible graphics, USB, etc.
  • Virtual I/O network adapter, SCSI controller, and serial interface
  • sPAPR non-volatile RAM

On the sPAPR target, another Open-Firmware-compatible BIOS is used, called SLOF.

=ARM=

==[[ARM32]]==

File:QEMU ARM Fedora Login1.png]]

QEMU emulates the ARMv7 instruction set (and down to ARMv5TEJ) with NEON extension.{{cite web|url=https://gitorious.org/rowboat/external-qemu/commit/bcc6ae14820ddb24e2403d84b420ce61f371ae94|title=gitorious.org Git - rowboat: external-qemu.git/commit|website=gitorious.org}} It emulates full systems like Integrator/CP board, Versatile baseboard, RealView Emulation baseboard, XScale-based PDAs, Palm Tungsten|E PDA, Nokia N800 and Nokia N810 Internet tablets, etc. QEMU also powers the Android emulator which is part of the Android SDK (most current Android implementations are ARM-based). Starting from version 2.0.0 of their Bada SDK, Samsung has chosen QEMU to help development on emulated 'Wave' devices.

In 1.5.0 and 1.6.0, Samsung Exynos 4210 (dual-core Cortex-A9) and Versatile Express ARM Cortex-A9 ARM Cortex-A15 are emulated. In 1.6.0, the 32-bit instructions of the ARMv8 (AArch64) architecture are emulated, but 64-bit instructions are unsupported.

The Xilinx Cortex A9-based Zynq SoC includes the following components:

  • Zynq-7000 ARM Cortex-A9 CPU
  • Zynq-7000 ARM Cortex-A9 MPCore
  • Triple Timer Counter
  • DDR Memory Controller
  • DMA Controller (PL330)
  • Static Memory Controller (NAND/NOR Flash)
  • SD/SDIO Peripheral Controller (SDHCI)
  • Zynq Gigabit Ethernet Controller
  • USB Controller (EHCI – Host support only)
  • Zynq UART Controller
  • SPI and QSPI Controllers
  • I2C Controller

==[[ARM64]]==

QEMU can emulate 64-bit "A-profile" CPUs that commonly run Linux such as the ARM Cortex-A53, ARM Cortex-A57 and the ARM Cortex-A72.{{cite web | title=Setting Up an ARM64 Linux Environment with QEMU | website=boardor.com | url=https://boardor.com/blog/setting-up-an-arm64-linux-environment-with-qemu | access-date=2025-02-10}} This allows it to emulate the Raspberry Pi 3 and 4.{{cite web | title=Arm System emulator | website=QEMU documentation | url=https://www.qemu.org/docs/master/system/target-arm.html | access-date=2024-11-23}}

=SPARC=

QEMU has support for both 32- and 64-bit SPARC architectures.

When the firmware in the JavaStation (sun4m Architecture) was updated to version 0.8.1,{{cite web |title=Zaitcev's Linux |url=http://people.redhat.com/zaitcev/linux/}} 090427 people.redhat.com Proll—a PROM replacement—was replaced with OpenBIOS in version 0.8.2.

====SPARC32====

QEMU emulates the following sun4m/sun4c/sun4d peripherals:

  • IOMMU or IO-UNITs
  • TCX Frame buffer (graphics card)
  • Lance (Am7990) Ethernet
  • Non-volatile RAM M48T02/M48T08
  • Slave I/O: timers, interrupt controllers, Zilog serial ports, keyboard and power/reset logic
  • ESP SCSI controller with hard disk and CD-ROM support
  • Floppy drive (not on SS-600MP)
  • CS4231 sound device (only on SS-5, not working yet)

==SPARC64==

QEMU emulates Sun4u (UltraSPARC PC-like machine), Sun4v (T1 PC-like machine), or generic Niagara (T1) machine with the following peripherals:

  • UltraSparc IIi APB PCI Bridge
  • PCI VGA-compatible card with VESA Bochs Extensions
  • PS/2 mouse and keyboard
  • Non-volatile RAM M48T59
  • PC-compatible serial ports
  • 2 PCI IDE interfaces with hard disk and CD-ROM support
  • Floppy disk

=MicroBlaze=

QEMU supports the following peripherals:

  • MicroBlaze with or without MMU, including AXI Timer and Interrupt Controller peripherals.
  • AXI External Memory Controller
  • AXI DMA Controller
  • Xilinx AXI Ethernet
  • AXI Ethernet Lite
  • AXI UART 16650 and UARTLite
  • AXI SPI Controller

=LatticeMico32=

Supported peripherals:

From the Milkymist SoC

  • UART
  • VGA
  • Memory card
  • Ethernet
  • pfu
  • timer

=CRIS=

{{Main article|ETRAX CRIS}}

=OpenRISC=

{{Main article|OpenRISC}}

=Others=

External trees exist, supporting the following targets:

  • Zilog Z80{{cite web |title=QEMU Z80 Target |url=http://homepage.ntlworld.com/wholehog/stuart/qemu/z80.html |archive-url=https://web.archive.org/web/20160606135712/http://homepage.ntlworld.com/wholehog/stuart/qemu/z80.html |url-status=dead |archive-date=2016-06-06}} 090506 homepage.ntlworld.com emulating a 48K ZX Spectrum
  • HP PA-RISC{{cite web |title=QEMU links |url=http://wiki.qemu.org/Links}} 090506 nongnu.org
  • RISC-V

See also

References

{{reflist|1=30em}}