1336a7451SDaniel P. Berrangé=========== 2336a7451SDaniel P. BerrangéQEMU README 3336a7451SDaniel P. Berrangé=========== 4336a7451SDaniel P. Berrangé 5336a7451SDaniel P. BerrangéQEMU is a generic and open source machine & userspace emulator and 6336a7451SDaniel P. Berrangévirtualizer. 7336a7451SDaniel P. Berrangé 8336a7451SDaniel P. BerrangéQEMU is capable of emulating a complete machine in software without any 9336a7451SDaniel P. Berrangéneed for hardware virtualization support. By using dynamic translation, 10336a7451SDaniel P. Berrangéit achieves very good performance. QEMU can also integrate with the Xen 11336a7451SDaniel P. Berrangéand KVM hypervisors to provide emulated hardware while allowing the 12336a7451SDaniel P. Berrangéhypervisor to manage the CPU. With hypervisor support, QEMU can achieve 13336a7451SDaniel P. Berrangénear native performance for CPUs. When QEMU emulates CPUs directly it is 14336a7451SDaniel P. Berrangécapable of running operating systems made for one machine (e.g. an ARMv7 15336a7451SDaniel P. Berrangéboard) on a different machine (e.g. an x86_64 PC board). 16336a7451SDaniel P. Berrangé 17336a7451SDaniel P. BerrangéQEMU is also capable of providing userspace API virtualization for Linux 18336a7451SDaniel P. Berrangéand BSD kernel interfaces. This allows binaries compiled against one 19336a7451SDaniel P. Berrangéarchitecture ABI (e.g. the Linux PPC64 ABI) to be run on a host using a 20336a7451SDaniel P. Berrangédifferent architecture ABI (e.g. the Linux x86_64 ABI). This does not 21336a7451SDaniel P. Berrangéinvolve any hardware emulation, simply CPU and syscall emulation. 22336a7451SDaniel P. Berrangé 23336a7451SDaniel P. BerrangéQEMU aims to fit into a variety of use cases. It can be invoked directly 24336a7451SDaniel P. Berrangéby users wishing to have full control over its behaviour and settings. 25336a7451SDaniel P. BerrangéIt also aims to facilitate integration into higher level management 26336a7451SDaniel P. Berrangélayers, by providing a stable command line interface and monitor API. 27336a7451SDaniel P. BerrangéIt is commonly invoked indirectly via the libvirt library when using 28336a7451SDaniel P. Berrangéopen source applications such as oVirt, OpenStack and virt-manager. 29336a7451SDaniel P. Berrangé 30336a7451SDaniel P. BerrangéQEMU as a whole is released under the GNU General Public License, 31336a7451SDaniel P. Berrangéversion 2. For full licensing details, consult the LICENSE file. 32336a7451SDaniel P. Berrangé 33336a7451SDaniel P. Berrangé 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 45336a7451SDaniel P. BerrangéBuilding 46336a7451SDaniel P. Berrangé======== 47336a7451SDaniel P. Berrangé 48336a7451SDaniel P. BerrangéQEMU is multi-platform software intended to be buildable on all modern 49336a7451SDaniel P. BerrangéLinux platforms, OS-X, Win32 (via the Mingw64 toolchain) and a variety 50336a7451SDaniel P. Berrangéof other UNIX targets. The simple steps to build QEMU are: 51336a7451SDaniel P. Berrangé 52336a7451SDaniel P. Berrangé 53336a7451SDaniel P. Berrangé.. code-block:: shell 54336a7451SDaniel P. Berrangé 55336a7451SDaniel P. Berrangé mkdir build 56336a7451SDaniel P. Berrangé cd build 57336a7451SDaniel P. Berrangé ../configure 58336a7451SDaniel P. Berrangé make 59336a7451SDaniel P. Berrangé 60336a7451SDaniel P. BerrangéAdditional information can also be found online via the QEMU website: 61336a7451SDaniel P. Berrangé 621c3515adSGreg Kurz* `<https://wiki.qemu.org/Hosts/Linux>`_ 631c3515adSGreg Kurz* `<https://wiki.qemu.org/Hosts/Mac>`_ 641c3515adSGreg Kurz* `<https://wiki.qemu.org/Hosts/W32>`_ 65336a7451SDaniel P. Berrangé 66336a7451SDaniel P. Berrangé 67336a7451SDaniel P. BerrangéSubmitting patches 68336a7451SDaniel P. Berrangé================== 69336a7451SDaniel P. Berrangé 70336a7451SDaniel P. BerrangéThe QEMU source code is maintained under the GIT version control system. 71336a7451SDaniel P. Berrangé 72336a7451SDaniel P. Berrangé.. code-block:: shell 73336a7451SDaniel P. Berrangé 742ad78433SStefan Hajnoczi git clone https://gitlab.com/qemu-project/qemu.git 75336a7451SDaniel P. Berrangé 76336a7451SDaniel P. BerrangéWhen submitting patches, one common approach is to use 'git 77336a7451SDaniel P. Berrangéformat-patch' and/or 'git send-email' to format & send the mail to the 78336a7451SDaniel P. Berrangéqemu-devel@nongnu.org mailing list. All patches submitted must contain 79336a7451SDaniel P. Berrangéa '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. 83336a7451SDaniel P. Berrangé 84336a7451SDaniel P. BerrangéAdditional information on submitting patches can be found online via 85*e215ba53SZhihai Dongthe QEMU website: 86336a7451SDaniel P. Berrangé 871c3515adSGreg Kurz* `<https://wiki.qemu.org/Contribute/SubmitAPatch>`_ 881c3515adSGreg Kurz* `<https://wiki.qemu.org/Contribute/TrivialPatches>`_ 89336a7451SDaniel P. Berrangé 90336a7451SDaniel P. BerrangéThe QEMU website is also maintained under source control. 91336a7451SDaniel P. Berrangé 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/>`_ 97336a7451SDaniel P. Berrangé 98336a7451SDaniel P. BerrangéA 'git-publish' utility was created to make above process less 99336a7451SDaniel P. Berrangécumbersome, and is highly recommended for making regular contributions, 100336a7451SDaniel P. Berrangéor even just for sending consecutive patch series revisions. It also 101336a7451SDaniel P. Berrangérequires a working 'git send-email' setup, and by default doesn't 102336a7451SDaniel P. Berrangéautomate everything, so you may want to go through the above steps 103336a7451SDaniel P. Berrangémanually for once. 104336a7451SDaniel P. Berrangé 105*e215ba53SZhihai DongFor installation instructions, please go to: 106336a7451SDaniel P. Berrangé 107336a7451SDaniel P. Berrangé* `<https://github.com/stefanha/git-publish>`_ 108336a7451SDaniel P. Berrangé 109336a7451SDaniel P. BerrangéThe workflow with 'git-publish' is: 110336a7451SDaniel P. Berrangé 111336a7451SDaniel P. Berrangé.. code-block:: shell 112336a7451SDaniel P. Berrangé 113336a7451SDaniel P. Berrangé $ git checkout master -b my-feature 114336a7451SDaniel P. Berrangé $ # work on new commits, add your 'Signed-off-by' lines to each 115336a7451SDaniel P. Berrangé $ git publish 116336a7451SDaniel P. Berrangé 117336a7451SDaniel P. BerrangéYour patch series will be sent and tagged as my-feature-v1 if you need to refer 118336a7451SDaniel P. Berrangéback to it in the future. 119336a7451SDaniel P. Berrangé 120336a7451SDaniel P. BerrangéSending v2: 121336a7451SDaniel P. Berrangé 122336a7451SDaniel P. Berrangé.. code-block:: shell 123336a7451SDaniel P. Berrangé 124336a7451SDaniel P. Berrangé $ git checkout my-feature # same topic branch 125336a7451SDaniel P. Berrangé $ # making changes to the commits (using 'git rebase', for example) 126336a7451SDaniel P. Berrangé $ git publish 127336a7451SDaniel P. Berrangé 128336a7451SDaniel P. BerrangéYour patch series will be sent with 'v2' tag in the subject and the git tip 129336a7451SDaniel P. Berrangéwill be tagged as my-feature-v2. 130336a7451SDaniel P. Berrangé 131336a7451SDaniel P. BerrangéBug reporting 132336a7451SDaniel P. Berrangé============= 133336a7451SDaniel P. Berrangé 134e2abbeacSStefan WeilThe QEMU project uses GitLab issues to track bugs. Bugs 135336a7451SDaniel P. Berrangéfound when running code built from QEMU git or upstream released sources 136336a7451SDaniel P. Berrangéshould be reported via: 137336a7451SDaniel P. Berrangé 138e2abbeacSStefan Weil* `<https://gitlab.com/qemu-project/qemu/-/issues>`_ 139336a7451SDaniel P. Berrangé 140336a7451SDaniel P. BerrangéIf using QEMU via an operating system vendor pre-built binary package, it 141336a7451SDaniel P. Berrangéis preferable to report bugs to the vendor's own bug tracker first. If 142336a7451SDaniel P. Berrangéthe bug is also known to affect latest upstream code, it can also be 143e2abbeacSStefan Weilreported via GitLab. 144336a7451SDaniel P. Berrangé 145336a7451SDaniel P. BerrangéFor additional information on bug reporting consult: 146336a7451SDaniel P. Berrangé 1471c3515adSGreg Kurz* `<https://wiki.qemu.org/Contribute/ReportABug>`_ 148336a7451SDaniel P. Berrangé 149336a7451SDaniel P. Berrangé 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 158336a7451SDaniel P. BerrangéContact 159336a7451SDaniel P. Berrangé======= 160336a7451SDaniel P. Berrangé 161336a7451SDaniel P. BerrangéThe QEMU community can be contacted in a number of ways, with the two 162*e215ba53SZhihai Dongmain methods being email and IRC: 163336a7451SDaniel P. Berrangé 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 167336a7451SDaniel P. Berrangé 168336a7451SDaniel P. BerrangéInformation on additional methods of contacting the community can be 169336a7451SDaniel P. Berrangéfound online via the QEMU website: 170336a7451SDaniel P. Berrangé 1711c3515adSGreg Kurz* `<https://wiki.qemu.org/Contribute/StartHere>`_ 172