1336a7451SDaniel P. Berrangé=========== 2b95aae12SPranith KumarQEMU README 3b95aae12SPranith Kumar=========== 43ef693a0Sbellard 50a3c1900SDaniel P. BerrangeQEMU is a generic and open source machine & userspace emulator and 60a3c1900SDaniel P. Berrangevirtualizer. 70a3c1900SDaniel P. Berrange 80a3c1900SDaniel P. BerrangeQEMU is capable of emulating a complete machine in software without any 90a3c1900SDaniel P. Berrangeneed for hardware virtualization support. By using dynamic translation, 100a3c1900SDaniel P. Berrangeit achieves very good performance. QEMU can also integrate with the Xen 110a3c1900SDaniel P. Berrangeand KVM hypervisors to provide emulated hardware while allowing the 120a3c1900SDaniel P. Berrangehypervisor to manage the CPU. With hypervisor support, QEMU can achieve 130a3c1900SDaniel P. Berrangenear native performance for CPUs. When QEMU emulates CPUs directly it is 140a3c1900SDaniel P. Berrangecapable of running operating systems made for one machine (e.g. an ARMv7 150a3c1900SDaniel P. Berrangeboard) on a different machine (e.g. an x86_64 PC board). 160a3c1900SDaniel P. Berrange 170a3c1900SDaniel P. BerrangeQEMU is also capable of providing userspace API virtualization for Linux 180a3c1900SDaniel P. Berrangeand BSD kernel interfaces. This allows binaries compiled against one 190a3c1900SDaniel P. Berrangearchitecture ABI (e.g. the Linux PPC64 ABI) to be run on a host using a 200a3c1900SDaniel P. Berrangedifferent architecture ABI (e.g. the Linux x86_64 ABI). This does not 210a3c1900SDaniel P. Berrangeinvolve any hardware emulation, simply CPU and syscall emulation. 220a3c1900SDaniel P. Berrange 230a3c1900SDaniel P. BerrangeQEMU aims to fit into a variety of use cases. It can be invoked directly 240a3c1900SDaniel P. Berrangeby users wishing to have full control over its behaviour and settings. 250a3c1900SDaniel P. BerrangeIt also aims to facilitate integration into higher level management 260a3c1900SDaniel P. Berrangelayers, by providing a stable command line interface and monitor API. 270a3c1900SDaniel P. BerrangeIt is commonly invoked indirectly via the libvirt library when using 280a3c1900SDaniel P. Berrangeopen source applications such as oVirt, OpenStack and virt-manager. 290a3c1900SDaniel P. Berrange 300a3c1900SDaniel P. BerrangeQEMU as a whole is released under the GNU General Public License, 310a3c1900SDaniel P. Berrangeversion 2. For full licensing details, consult the LICENSE file. 320a3c1900SDaniel P. Berrange 330a3c1900SDaniel P. Berrange 3433bf4729SJohn SnowDocumentation 3533bf4729SJohn Snow============= 3633bf4729SJohn Snow 3733bf4729SJohn SnowDocumentation can be found hosted online at 3833bf4729SJohn Snow`<https://www.qemu.org/documentation/>`_. The documentation for the 3933bf4729SJohn Snowcurrent development version that is available at 4033bf4729SJohn Snow`<https://www.qemu.org/docs/master/>`_ is generated from the ``docs/`` 4133bf4729SJohn Snowfolder in the source tree, and is built by `Sphinx 429567fc16SCornelia Huck<https://www.sphinx-doc.org/en/master/>`_. 4333bf4729SJohn Snow 4433bf4729SJohn Snow 450a3c1900SDaniel P. BerrangeBuilding 46b95aae12SPranith Kumar======== 470a3c1900SDaniel P. Berrange 480a3c1900SDaniel P. BerrangeQEMU is multi-platform software intended to be buildable on all modern 490a3c1900SDaniel P. BerrangeLinux platforms, OS-X, Win32 (via the Mingw64 toolchain) and a variety 500a3c1900SDaniel P. Berrangeof other UNIX targets. The simple steps to build QEMU are: 510a3c1900SDaniel P. Berrange 52336a7451SDaniel P. Berrangé 53336a7451SDaniel P. Berrangé.. code-block:: shell 54336a7451SDaniel P. Berrangé 550a3c1900SDaniel P. Berrange mkdir build 560a3c1900SDaniel P. Berrange cd build 570a3c1900SDaniel P. Berrange ../configure 580a3c1900SDaniel P. Berrange make 590a3c1900SDaniel P. Berrange 600a3c1900SDaniel P. BerrangeAdditional information can also be found online via the QEMU website: 610a3c1900SDaniel P. Berrange 621c3515adSGreg Kurz* `<https://wiki.qemu.org/Hosts/Linux>`_ 631c3515adSGreg Kurz* `<https://wiki.qemu.org/Hosts/Mac>`_ 641c3515adSGreg Kurz* `<https://wiki.qemu.org/Hosts/W32>`_ 650a3c1900SDaniel P. Berrange 660a3c1900SDaniel P. Berrange 670a3c1900SDaniel P. BerrangeSubmitting patches 68b95aae12SPranith Kumar================== 690a3c1900SDaniel P. Berrange 700a3c1900SDaniel P. BerrangeThe QEMU source code is maintained under the GIT version control system. 710a3c1900SDaniel P. Berrange 72336a7451SDaniel P. Berrangé.. code-block:: shell 73336a7451SDaniel P. Berrangé 742ad78433SStefan Hajnoczi git clone https://gitlab.com/qemu-project/qemu.git 750a3c1900SDaniel P. Berrange 7623500c6aSFam ZhengWhen submitting patches, one common approach is to use 'git 770a3c1900SDaniel P. Berrangeformat-patch' and/or 'git send-email' to format & send the mail to the 780a3c1900SDaniel P. Berrangeqemu-devel@nongnu.org mailing list. All patches submitted must contain 790a3c1900SDaniel P. Berrangea 'Signed-off-by' line from the author. Patches should follow the 8093a11007SAlex Bennéeguidelines set out in the `style section 819567fc16SCornelia Huck<https://www.qemu.org/docs/master/devel/style.html>`_ of 8293a11007SAlex Bennéethe Developers Guide. 830a3c1900SDaniel P. Berrange 840a3c1900SDaniel P. BerrangeAdditional information on submitting patches can be found online via 85*e215ba53SZhihai Dongthe QEMU website: 860a3c1900SDaniel P. Berrange 871c3515adSGreg Kurz* `<https://wiki.qemu.org/Contribute/SubmitAPatch>`_ 881c3515adSGreg Kurz* `<https://wiki.qemu.org/Contribute/TrivialPatches>`_ 890a3c1900SDaniel P. Berrange 90a348f64dSEric BlakeThe QEMU website is also maintained under source control. 91a348f64dSEric Blake 92336a7451SDaniel P. Berrangé.. code-block:: shell 93336a7451SDaniel P. Berrangé 942ad78433SStefan Hajnoczi git clone https://gitlab.com/qemu-project/qemu-web.git 95336a7451SDaniel P. Berrangé 96336a7451SDaniel P. Berrangé* `<https://www.qemu.org/2017/02/04/the-new-qemu-website-is-up/>`_ 970a3c1900SDaniel P. Berrange 987c9e2748SFam ZhengA 'git-publish' utility was created to make above process less 9923500c6aSFam Zhengcumbersome, and is highly recommended for making regular contributions, 10023500c6aSFam Zhengor even just for sending consecutive patch series revisions. It also 10123500c6aSFam Zhengrequires a working 'git send-email' setup, and by default doesn't 10223500c6aSFam Zhengautomate everything, so you may want to go through the above steps 10323500c6aSFam Zhengmanually for once. 10423500c6aSFam Zheng 105*e215ba53SZhihai DongFor installation instructions, please go to: 10623500c6aSFam Zheng 107336a7451SDaniel P. Berrangé* `<https://github.com/stefanha/git-publish>`_ 10823500c6aSFam Zheng 10923500c6aSFam ZhengThe workflow with 'git-publish' is: 11023500c6aSFam Zheng 111336a7451SDaniel P. Berrangé.. code-block:: shell 112336a7451SDaniel P. Berrangé 11323500c6aSFam Zheng $ git checkout master -b my-feature 11423500c6aSFam Zheng $ # work on new commits, add your 'Signed-off-by' lines to each 11523500c6aSFam Zheng $ git publish 11623500c6aSFam Zheng 11723500c6aSFam ZhengYour patch series will be sent and tagged as my-feature-v1 if you need to refer 11823500c6aSFam Zhengback to it in the future. 11923500c6aSFam Zheng 12023500c6aSFam ZhengSending v2: 12123500c6aSFam Zheng 122336a7451SDaniel P. Berrangé.. code-block:: shell 123336a7451SDaniel P. Berrangé 12423500c6aSFam Zheng $ git checkout my-feature # same topic branch 12523500c6aSFam Zheng $ # making changes to the commits (using 'git rebase', for example) 12623500c6aSFam Zheng $ git publish 12723500c6aSFam Zheng 12823500c6aSFam ZhengYour patch series will be sent with 'v2' tag in the subject and the git tip 12923500c6aSFam Zhengwill be tagged as my-feature-v2. 13023500c6aSFam Zheng 1310a3c1900SDaniel P. BerrangeBug reporting 132b95aae12SPranith Kumar============= 1330a3c1900SDaniel P. Berrange 134e2abbeacSStefan WeilThe QEMU project uses GitLab issues to track bugs. Bugs 1350a3c1900SDaniel P. Berrangefound when running code built from QEMU git or upstream released sources 1360a3c1900SDaniel P. Berrangeshould be reported via: 1370a3c1900SDaniel P. Berrange 138e2abbeacSStefan Weil* `<https://gitlab.com/qemu-project/qemu/-/issues>`_ 1390a3c1900SDaniel P. Berrange 1400a3c1900SDaniel P. BerrangeIf using QEMU via an operating system vendor pre-built binary package, it 1410a3c1900SDaniel P. Berrangeis preferable to report bugs to the vendor's own bug tracker first. If 1420a3c1900SDaniel P. Berrangethe bug is also known to affect latest upstream code, it can also be 143e2abbeacSStefan Weilreported via GitLab. 1440a3c1900SDaniel P. Berrange 1450a3c1900SDaniel P. BerrangeFor additional information on bug reporting consult: 1460a3c1900SDaniel P. Berrange 1471c3515adSGreg Kurz* `<https://wiki.qemu.org/Contribute/ReportABug>`_ 1480a3c1900SDaniel P. Berrange 1490a3c1900SDaniel P. Berrange 150e83029faSJohn SnowChangeLog 151e83029faSJohn Snow========= 152e83029faSJohn Snow 153e83029faSJohn SnowFor version history and release notes, please visit 154e83029faSJohn Snow`<https://wiki.qemu.org/ChangeLog/>`_ or look at the git history for 155e83029faSJohn Snowmore detailed information. 156e83029faSJohn Snow 157e83029faSJohn Snow 1580a3c1900SDaniel P. BerrangeContact 159b95aae12SPranith Kumar======= 1600a3c1900SDaniel P. Berrange 1610a3c1900SDaniel P. BerrangeThe QEMU community can be contacted in a number of ways, with the two 162*e215ba53SZhihai Dongmain methods being email and IRC: 1630a3c1900SDaniel P. Berrange 164336a7451SDaniel P. Berrangé* `<mailto:qemu-devel@nongnu.org>`_ 165336a7451SDaniel P. Berrangé* `<https://lists.nongnu.org/mailman/listinfo/qemu-devel>`_ 166336a7451SDaniel P. Berrangé* #qemu on irc.oftc.net 1670a3c1900SDaniel P. Berrange 1680a3c1900SDaniel P. BerrangeInformation on additional methods of contacting the community can be 1690a3c1900SDaniel P. Berrangefound online via the QEMU website: 1700a3c1900SDaniel P. Berrange 1711c3515adSGreg Kurz* `<https://wiki.qemu.org/Contribute/StartHere>`_ 172